diff --git a/dotconf-1.3.tar.gz b/dotconf-1.3.tar.gz new file mode 100644 index 0000000..97fbc0e Binary files /dev/null and b/dotconf-1.3.tar.gz differ diff --git a/dotconf.spec b/dotconf.spec new file mode 100644 index 0000000..27b5ab8 --- /dev/null +++ b/dotconf.spec @@ -0,0 +1,67 @@ +Name: dotconf +Version: 1.3 +Release: 22 +Summary: A configuration file parser +License: LGPLv2 +URL: https://github.com/williamh/dotconf +#soure address: https://github.com/williamh/dotconf/archive/v1.3.tar.gz +Source: %{name}-%{version}.tar.gz +BuildRequires: findutils glibc-common make autoconf automake + +%description +The dotconf package contains a library used to handle configuration +files. + +%package devel +Summary: Development files for dotconf +Requires: %{name} = %{version}-%{release} +Requires: pkgconf-pkg-config + +%description devel +The dotconf-devel package contains libraries and header files for +developing applications that use dotconf. + +%package help +Summary: Documents for dotconf + +%description help +The dotconf-help package contains related documents. + + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +autoreconf -fiv +%configure --disable-static +%make_build + +%install +%make_install + +%delete_la + +mv %{buildroot}/%{_docdir}/%{name} __doc_dir + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%doc AUTHORS COPYING +%{_libdir}/libdotconf*.so.* + +%files devel +%{_libdir}/libdotconf*.so +%{_includedir}/dotconf.h +%{_libdir}/pkgconfig/dotconf.pc + +%files help +%doc README +%doc __doc_dir/* + +%changelog +* Fri Feb 14 2020 Tianfei - 1.3-22 +- Package init