libkolabxml/libkolabxml.spec

396 lines
11 KiB
RPMSpec
Raw Normal View History

%{?!mono_arches: %global mono_arches %{ix86} x86_64 sparc sparcv9 ia64 %{arm} alpha s390x ppc ppc64}
%ifarch %{mono_arches}
# No linux system is actually using the csharp bindings
%global with_csharp 0
%endif
2012-08-15 14:52:35 +00:00
%global with_java 1
%global with_php 1
%global with_python 1
%if 0%{?with_php} > 0
%{!?php_extdir: %global php_extdir %{_libdir}/php/modules}
2012-05-09 14:37:17 +00:00
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d/}
%{!?php_apiver: %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)}
2012-08-15 14:52:35 +00:00
%endif
%if 0%{?with_python} > 0
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2012-08-15 14:52:35 +00:00
%endif
# Filter out private python and php libs. Does not work on EPEL5,
# therefor we use it conditionally
2012-08-15 14:52:35 +00:00
%if 0%{?with_php} > 0
%if 0%{?with_python} > 0
%{?filter_setup:
2012-06-25 10:49:52 +00:00
%filter_provides_in %{python_sitearch}/.*\.so$
%filter_provides_in %{php_extdir}/.*\.so$
%filter_setup
}
2012-08-15 14:52:35 +00:00
%else
%{?filter_setup:
%filter_provides_in %{php_extdir}/.*\.so$
%filter_setup
}
%endif
%else
%if 0%{?with_python} > 0
%{?filter_setup:
%filter_provides_in %{python_sitearch}/.*\.so$
%filter_setup
}
%endif
%endif
2012-04-10 01:57:45 +00:00
Name: libkolabxml
Version: 1.0.1
Release: 5%{?dist}
2012-04-10 01:57:45 +00:00
Summary: Kolab XML format collection parser library
2012-06-20 14:14:52 +00:00
Group: System Environment/Libraries
2012-04-10 01:57:45 +00:00
License: LGPLv3+
URL: http://www.kolab.org
2012-06-20 14:19:58 +00:00
Source0: http://git.kolab.org/libkolabxml/snapshot/libkolabxml-%{version}.tar.gz
# Fix #2576 csharp bindings not building
Patch0: libkolabxml-1.0.1_csharp_bindings.patch
2012-05-02 10:51:51 +00:00
2012-04-10 01:57:45 +00:00
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: boost-devel
BuildRequires: cmake >= 2.6
BuildRequires: e2fsprogs-devel
BuildRequires: gcc-c++
%if 0%{?rhel} > 6 || 0%{?fedora} >= 16
BuildRequires: kdelibs-devel
BuildRequires: kdepimlibs-devel
%endif
2012-07-25 08:33:09 +00:00
BuildRequires: libcurl-devel
2012-04-10 01:57:45 +00:00
BuildRequires: qt-devel >= 3
BuildRequires: swig
2012-04-11 15:19:32 +00:00
BuildRequires: uuid-devel
2012-04-10 01:57:45 +00:00
BuildRequires: xerces-c-devel
BuildRequires: xsd
2012-08-15 14:52:35 +00:00
%if 0%{?with_csharp} < 1
Obsoletes: csharp-kolabformat < %{version}-%{release}
#Provides: csharp-kolabformat = %{version}-%{release}
2012-08-15 14:52:35 +00:00
%endif
%if 0%{?with_java} < 1
Obsoletes: java-kolabformat < %{version}-%{release}
#Provides: java-kolabformat = %{version}-%{release}
2012-08-15 14:52:35 +00:00
%endif
%if 0%{?with_php} < 1
Obsoletes: php-kolabformat < %{version}-%{release}
#Provides: php-kolabformat = %{version}-%{release}
2012-08-15 14:52:35 +00:00
%endif
%if 0%{?with_python} < 1
Obsoletes: python-kolabformat < %{version}-%{release}
#Provides: python-kolabformat = %{version}-%{release}
2012-08-15 14:52:35 +00:00
%endif
2012-04-10 01:57:45 +00:00
%description
2012-06-20 14:14:16 +00:00
The libkolabxml parsing library interprets Kolab XML formats (xCal, xCard)
with bindings for Python, PHP and other languages. The language bindings
are available through sub-packages.
2012-04-10 01:57:45 +00:00
%package devel
Summary: Kolab XML library development headers
Requires: %{name}%{?_isa} = %{version}-%{release}
2012-05-09 14:02:37 +00:00
Requires: boost-devel
Requires: cmake >= 2.6
Requires: e2fsprogs-devel
Requires: gcc-c++
2012-04-10 01:57:45 +00:00
%if 0%{?rhel} > 6 || 0%{?fedora} >= 16
2012-05-09 14:02:37 +00:00
Requires: kdelibs-devel
Requires: kdepimlibs-devel
2012-04-10 01:57:45 +00:00
%endif
Requires: libcurl-devel
2012-08-15 14:52:35 +00:00
%if 0%{?with_php} > 0
2012-05-09 14:02:37 +00:00
Requires: php-devel >= 5.3
2012-08-15 14:52:35 +00:00
%endif
%if 0%{?with_python} > 0
2012-05-09 14:02:37 +00:00
Requires: python-devel
2012-08-15 14:52:35 +00:00
%endif
2012-05-09 14:02:37 +00:00
Requires: qt-devel >= 3
Requires: swig
Requires: uuid-devel
Requires: xerces-c-devel
Requires: xsd
2012-04-10 01:57:45 +00:00
%description devel
2012-06-25 10:49:52 +00:00
Development headers for the Kolab XML libraries.
2012-04-10 01:57:45 +00:00
2012-08-15 14:52:35 +00:00
%if 0%{?with_csharp} > 0
%package -n csharp-kolabformat
Summary: C# Bindings for libkolabxml
Requires: %{name}%{?_isa} = %{version}-%{release}
BuildRequires: mono-core
%description -n csharp-kolabformat
C# bindings for libkolabxml
%endif
%if 0%{?with_java} > 0
%package -n java-kolabformat
Summary: Java Bindings for libkolabxml
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n java-kolabformat
Java bindings for libkolabxml
%endif
%if 0%{?with_php} > 0
2012-04-10 01:57:45 +00:00
%package -n php-kolabformat
Summary: PHP bindings for libkolabxml
Requires: %{name}%{?_isa} = %{version}-%{release}
2012-06-27 07:04:58 +00:00
%if 0%{?rhel} > 5 || 0%{?fedora} > 15
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
2012-06-27 07:04:58 +00:00
%else
Requires: php-api = %{php_apiver}
%endif
BuildRequires: php >= 5.3
2012-08-15 14:52:35 +00:00
BuildRequires: php-devel >= 5.3
2012-04-10 01:57:45 +00:00
%description -n php-kolabformat
The PHP kolabformat package offers a comprehensible PHP library using the
bindings provided through libkolabxml.
2012-08-15 14:52:35 +00:00
%endif
2012-04-10 01:57:45 +00:00
2012-08-15 14:52:35 +00:00
%if 0%{?with_python} > 0
2012-04-10 01:57:45 +00:00
%package -n python-kolabformat
Summary: Python bindings for libkolabxml
Requires: %{name}%{?_isa} = %{version}-%{release}
2012-08-15 14:52:35 +00:00
BuildRequires: python-devel
2012-04-10 01:57:45 +00:00
%description -n python-kolabformat
The PyKolab format package offers a comprehensive Python library using the
bindings provided through libkolabxml.
2012-08-15 14:52:35 +00:00
%endif
2012-04-10 01:57:45 +00:00
%prep
%setup -q -n libkolabxml-%{version}
%patch0 -p1
2012-04-10 01:57:45 +00:00
%build
mkdir -p build
pushd build
%cmake \
-Wno-fatal-errors -Wno-errors \
2012-04-10 01:57:45 +00:00
-DCMAKE_SKIP_RPATH=ON \
2012-04-20 09:37:53 +00:00
-DCMAKE_PREFIX_PATH=%{_libdir} \
2012-04-11 15:19:32 +00:00
%if 0%{?rhel} < 6 && 0%{?fedora} < 15
2012-04-10 01:57:45 +00:00
-DBOOST_LIBRARYDIR=%{_libdir}/boost141 \
-DBOOST_INCLUDEDIR=%{_includedir}/boost141 \
-DBoost_ADDITIONAL_VERSIONS="1.41;1.41.0" \
%endif
2012-07-29 15:05:10 +00:00
-DINCLUDE_INSTALL_DIR=%{_includedir} \
2012-08-15 14:52:35 +00:00
%if 0%{?with_csharp} > 0
-DCSHARP_BINDINGS=ON \
-DCSHARP_INSTALL_DIR=%{_datadir}/%{name}/csharp/ \
%endif
%if 0%{?with_java} > 0
-DJAVA_BINDINGS=ON \
-DJAVA_INSTALL_DIR=%{_datadir}/%{name}/java/ \
%endif
%if 0%{?with_php} > 0
2012-04-11 15:19:32 +00:00
-DPHP_BINDINGS=ON \
2012-05-02 10:51:51 +00:00
-DPHP_INSTALL_DIR=%{php_extdir} \
2012-08-15 14:52:35 +00:00
%endif
%if 0%{?with_python} > 0
2012-04-11 15:19:32 +00:00
-DPYTHON_BINDINGS=ON \
2012-08-15 14:52:35 +00:00
-DPYTHON_INCLUDE_DIRS=%{python_include} \
2012-05-02 10:51:51 +00:00
-DPYTHON_INSTALL_DIR=%{python_sitearch} \
2012-08-15 14:52:35 +00:00
%endif
2012-04-10 01:57:45 +00:00
..
make
popd
%install
pushd build
make install DESTDIR=%{buildroot} INSTALL='install -p'
2012-04-10 01:57:45 +00:00
popd
2012-08-15 14:52:35 +00:00
%if 0%{?with_php} > 0
mkdir -p \
%{buildroot}/%{_datadir}/php \
%{buildroot}/%{php_inidir}/
2012-05-09 14:17:32 +00:00
mv %{buildroot}/%{php_extdir}/kolabformat.php %{buildroot}/%{_datadir}/php/kolabformat.php
cat > %{buildroot}/%{php_inidir}/kolabformat.ini << EOF
2012-05-09 14:17:32 +00:00
extension=kolabformat.so
EOF
2012-08-15 14:52:35 +00:00
%endif
2012-05-09 14:17:32 +00:00
2012-05-22 16:52:10 +00:00
%check
pushd build
# Make sure libkolabxml.so.* is found, otherwise the tests fail
export LD_LIBRARY_PATH=$( pwd )/src/
2012-05-22 16:52:10 +00:00
pushd tests
./bindingstest ||:
./conversiontest ||:
./parsingtest ||:
popd
2012-08-15 14:52:35 +00:00
%if 0%{?with_php} > 0
2012-05-22 16:52:10 +00:00
php -d enable_dl=On -dextension=src/php/kolabformat.so src/php/test.php ||:
2012-08-15 14:52:35 +00:00
%endif
%if 0%{?with_python} > 0
2012-05-22 16:52:10 +00:00
python src/python/test.py ||:
2012-08-15 14:52:35 +00:00
%endif
2012-05-22 16:52:10 +00:00
popd
2012-04-10 01:57:45 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2012-04-10 01:57:45 +00:00
%files
2012-05-02 10:08:50 +00:00
%doc DEVELOPMENT NEWS README
2012-04-10 01:57:45 +00:00
%{_libdir}/*.so.*
%files devel
%{_includedir}/kolabxml
2012-04-10 01:57:45 +00:00
%{_libdir}/*.so
2012-05-02 10:51:51 +00:00
%{_libdir}/cmake/Libkolabxml
2012-04-10 01:57:45 +00:00
2012-08-15 14:52:35 +00:00
%if 0%{?with_csharp} > 0
%files -n csharp-kolabformat
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/csharp
%endif
%if 0%{?with_java} > 0
%files -n java-kolabformat
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/java
%endif
%if 0%{?with_php} > 0
2012-04-10 01:57:45 +00:00
%files -n php-kolabformat
2012-05-09 14:17:32 +00:00
%{_datadir}/php/kolabformat.php
2012-04-10 01:57:45 +00:00
%{php_extdir}/kolabformat.so
%config(noreplace) %{php_inidir}/kolabformat.ini
2012-08-15 14:52:35 +00:00
%endif
2012-04-10 01:57:45 +00:00
2012-08-15 14:52:35 +00:00
%if 0%{?with_python} > 0
2012-04-10 01:57:45 +00:00
%files -n python-kolabformat
%{python_sitearch}/kolabformat.py*
%{python_sitearch}/_kolabformat.so
2012-08-15 14:52:35 +00:00
%endif
2012-04-10 01:57:45 +00:00
%changelog
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-28 15:13:37 +00:00
* Wed May 28 2014 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-4
- rebuild once more with feeling (boost)
2014-05-22 21:28:19 +00:00
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 1.0.1-3
- Rebuild for boost 1.55.0
* Mon Jan 13 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.1-2
- Require php-kolab for php-kolabformat, and void
/etc/php.d/kolabformat.ini (#2667)
* Wed Oct 30 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.1-1
- New upstream release
* Mon Oct 14 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.0-1
- New upstream release
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-27 12:35:56 +00:00
* Sat Jul 27 2013 pmachata@redhat.com - 0.8.4-2
- Rebuild for boost 1.54.0
2013-04-12 19:34:30 +00:00
* Fri Apr 12 2013 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4-1
- Update to 0.8.4
* Fri Mar 22 2013 Remi Collet <rcollet@redhat.com> - 0.8.3-2
- rebuild for http://fedoraproject.org/wiki/Features/Php55
2013-02-26 11:34:37 +00:00
* Tue Feb 26 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.8.3-1
- New upstream release with file format handling
2013-02-10 01:29:33 +00:00
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.8.1-4
- Rebuild for Boost-1.53.0
2013-02-09 22:02:35 +00:00
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.8.1-3
- Rebuild for Boost-1.53.0
* Wed Aug 22 2012 Dan Horák <dan[at]danny.cz> - 0.8.1-2
- build csharp subpackage only when Mono exists
2012-08-15 14:52:35 +00:00
* Wed Aug 15 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.8.1-1
- New upstream version 0.8.1
- Revert s/qt-devel/qt4-devel/ - just require the latest qt-devel
- Revert s/kdelibs-devel/kdelibs4-devel/ - also require the latest
kdelibs (frameworks FTW!)
* Sun Aug 12 2012 Rex Dieter <rdieter@fedoraproject.org> - 0.7.0-3
- drop BR: gcc-c++
- s/qt-devel/qt4-devel/ s/kdelibs-devel/kdelibs4-devel/
- fix build against boost-1.50
2012-08-02 00:37:35 +00:00
2012-07-25 09:07:02 +00:00
* Wed Jul 25 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.0-2
- Fix build on ppc64
2012-07-25 08:33:09 +00:00
- New upstream version
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-06-27 07:04:58 +00:00
* Wed Jun 27 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6.0-3
- Correct dependency on php
* Tue Jun 26 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6.0-2
- Also remove xsd-utils requirement for -devel sub-package
2012-06-25 11:24:23 +00:00
* Mon Jun 25 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6.0-1
- Actual 0.6.0 release
* Sat Jun 23 2012 Christoph Wickert <wickert@kolabsys.com> - 0.6-1
- Update to 0.6 final
- Run ldconfig in %%post and %%postun
- Mark kolabformat.ini as config file
- Export LD_LIBRARY_PATH so tests can be run in %%check
- Add php dependencies to php-kolabformat package
- Make base package requirements are arch-specific
- Filter unwanted provides of php-kolabformat and python-kolabformat
2012-06-20 14:20:45 +00:00
* Wed Jun 20 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6-0.4
- Some other cleanups to prevent review scrutiny from blocking
inclusion
- Drop build requirement for xsd-utils
2012-06-11 12:18:32 +00:00
* Sat Jun 9 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6-0.2
2012-05-31 13:06:01 +00:00
- Git snapshot release
2012-05-23 14:37:49 +00:00
* Wed May 23 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-5
- Correct use of Python keyword None
2012-05-23 08:59:56 +00:00
- Snapshot version with attendee cutype support
2012-05-22 16:52:10 +00:00
* Tue May 22 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-3
- Snapshot version with attendee delegation support
* Sat May 12 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-2
2012-05-12 12:23:28 +00:00
- Snapshot version with build system changes
2012-05-09 14:17:32 +00:00
* Wed May 9 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.4.0-3
- Fix PHP kolabformat module packaging
* Wed May 2 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.4.0-2
2012-05-02 10:51:51 +00:00
- New version
2012-05-02 10:08:50 +00:00
2012-04-20 09:37:53 +00:00
* Fri Apr 20 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.3.0-1
- New version
2012-04-10 01:57:45 +00:00
* Mon Apr 9 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.3-0.1
- First package