dotconf/dotconf.spec
2020-02-14 12:38:23 +08:00

68 lines
1.4 KiB
RPMSpec

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 <tianfei16@huawei.com> - 1.3-22
- Package init