2015-11-30 14:36:41 +00:00
|
|
|
# Set --with test to run the Samba torture testsuite.
|
|
|
|
%bcond_with testsuite
|
|
|
|
|
|
|
|
Name: iniparser
|
2016-08-21 12:32:22 +00:00
|
|
|
Version: 4.0
|
2017-07-26 13:33:58 +00:00
|
|
|
Release: 3.20160821git%{?dist}
|
2015-11-30 14:36:41 +00:00
|
|
|
Summary: C library for parsing "INI-style" files
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: MIT
|
2016-08-21 12:32:22 +00:00
|
|
|
URL: https://github.com/ndevilla/%{name}
|
|
|
|
#Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source0: %{name}-%{version}-git-e24843b.tar.xz
|
2015-11-30 14:36:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
iniParser is an ANSI C library to parse "INI-style" files, often used to
|
|
|
|
hold application configuration information.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files, libraries and development documentation for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the header files, static libraries and development
|
|
|
|
documentation for %{name}. If you like to develop programs using %{name},
|
|
|
|
you will need to install %{name}-devel.
|
|
|
|
|
|
|
|
%prep
|
2016-08-21 12:32:22 +00:00
|
|
|
%setup -q
|
2015-11-30 14:36:41 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
# remove library rpath from Makefile
|
|
|
|
sed -i 's|-Wl,-rpath -Wl,/usr/lib||g' Makefile
|
|
|
|
sed -i 's|-Wl,-rpath,/usr/lib||g' Makefile
|
|
|
|
# set the CFLAGS to Fedora standard
|
|
|
|
sed -i 's|^CFLAGS|CFLAGS = %{optflags} -fPIC\nNOCFLAGS|' Makefile
|
2016-08-21 12:32:22 +00:00
|
|
|
make %{?_smp_mflags}
|
2015-11-30 14:36:41 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# iniParser doesn't have a 'make install' of its own :(
|
|
|
|
install -d %{buildroot}%{_includedir} %{buildroot}%{_libdir}
|
|
|
|
install -m 644 -t %{buildroot}%{_includedir}/ src/dictionary.h src/iniparser.h
|
|
|
|
install -m 755 -t %{buildroot}%{_libdir}/ libiniparser.so.0
|
|
|
|
ln -s libiniparser.so.0 %{buildroot}%{_libdir}/libiniparser.so
|
|
|
|
|
|
|
|
%if %{with testsuite}
|
|
|
|
%check
|
|
|
|
make
|
|
|
|
make check
|
|
|
|
./test/iniexample
|
|
|
|
./test/parse test/twisted.ini
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2016-08-21 12:32:22 +00:00
|
|
|
%doc README.md INSTALL AUTHORS
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license LICENSE
|
2015-11-30 14:36:41 +00:00
|
|
|
%{_libdir}/libiniparser.so.0
|
|
|
|
|
|
|
|
%files devel
|
2016-08-21 12:32:22 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license LICENSE
|
2015-11-30 14:36:41 +00:00
|
|
|
%{_libdir}/libiniparser.so
|
|
|
|
%{_includedir}/*.h
|
|
|
|
|
|
|
|
%changelog
|
2017-07-26 13:33:58 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-3.20160821git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 16:26:14 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-2.20160821git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-08-21 12:32:22 +00:00
|
|
|
* Sun Aug 21 2016 Jaromír Cápík <jaromir.capik@email.cz> - 4.0-1.20160821git
|
|
|
|
- Update to 4.0 [git e24843b] (#1346451)
|
|
|
|
- Spec file maintenance
|
|
|
|
|
2016-02-04 00:31:50 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-30 14:36:41 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jan 10 2014 - Andreas Schneider <asn@redhat.com> - 3.1-4
|
|
|
|
- resolves: #1031119 - Fix possible crash with crafted ini files.
|
|
|
|
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Aug 10 2012 Jaromir Capik <jcapik@redhat.com> - 3.1-1
|
|
|
|
- Update to 3.1
|
|
|
|
- Minor spec file changes according to the latest guidelines
|
|
|
|
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Simo Sorce <ssorce@redhat.com> - 3.0-1
|
|
|
|
- Final 3.0 release
|
|
|
|
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.4.b
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.3.b
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.2.b
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jan 26 2009 Alex Hudson <fedora@alexhudson.com> - 3.0-0.1.b
|
|
|
|
- change version number to reflect "pre-release" status
|
|
|
|
|
|
|
|
* Mon Jan 19 2009 Alex Hudson <fedora@alexhudson.com> - 3.0b-3
|
|
|
|
- ensure LICENSE file is installed
|
|
|
|
|
|
|
|
* Wed Jan 14 2009 Alex Hudson <fedora@alexhudson.com> - 3.0b-2
|
|
|
|
- respond to review: added -fPIC to cflags, used 'install'
|
|
|
|
|
|
|
|
* Tue Jan 13 2009 Alex Hudson <fedora@alexhudson.com> - 3.0b-1
|
|
|
|
- Initial packaging attempt
|