commit
729e597ec4
BIN
iniparser-4.1.tar.gz
Normal file
BIN
iniparser-4.1.tar.gz
Normal file
Binary file not shown.
53
iniparser.spec
Normal file
53
iniparser.spec
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#%global debug_package %{nil}
|
||||||
|
|
||||||
|
Name: iniparser
|
||||||
|
Version: 4.1
|
||||||
|
Release: 1
|
||||||
|
Summary: ini file parser
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/ndevilla/iniparser
|
||||||
|
Source0: https://github.com/ndevilla/iniparser/archive/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: gcc doxygen
|
||||||
|
|
||||||
|
%description
|
||||||
|
This modules offers parsing of ini files from the C level. See a complete documentation in HTML format, from this directory open the file html/index.html with any HTML-capable browser.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}/
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build
|
||||||
|
cd doc;make
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %{buildroot}/%{_includedir}/%{name}
|
||||||
|
install -m 644 -t %{buildroot}%{_includedir}/%{name} src/dictionary.h src/iniparser.h
|
||||||
|
|
||||||
|
install -d %{buildroot}/%{_libdir}
|
||||||
|
install -m 755 -t %{buildroot}%{_libdir}/ libiniparser.so.1
|
||||||
|
ln -s libiniparser.so.1 %{buildroot}%{_libdir}/libiniparser.so
|
||||||
|
|
||||||
|
install -d %{buildroot}/%{_docdir}/%{name}
|
||||||
|
cp -r example %{buildroot}/%{_docdir}/%{name}
|
||||||
|
cp -r html %{buildroot}/%{_docdir}/%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%preun
|
||||||
|
%post
|
||||||
|
%postun
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md INSTALL AUTHORS FAQ-en.md FAQ-zhcn.md
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/*
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user