Accepting request 178513 from home:TheBlackCat:branches:devel:libraries:c_c++

- New 1.x package.
  This version uses the cmake build system
- Add devel-static subpackage
- Remove unneeded buildrequires
- Changed license from MPL-1.1 to MPL-1.0.  That is the license
  listed in the COPYING file and the headers.
- Removed scripts directory from documentation.  Putting perl
  files in the documentation directory is apparently no longer
  allowed.
- Ran spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/178513
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libical?expand=0&rev=23
This commit is contained in:
Marcus Meissner 2013-06-11 12:48:30 +00:00 committed by Git OBS Bridge
parent b905faf299
commit 78c509ca80
5 changed files with 68 additions and 44 deletions

View File

@ -1,4 +1,4 @@
libical0 libical1
obsoletes "libical-<targettype> <= <version>" obsoletes "libical-<targettype> <= <version>"
provides "libical-<targettype> = <version>" provides "libical-<targettype> = <version>"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dfbc62a723feb735aa1b812a5431e72f4197d91dca702b6d77917b0e8e942c85
size 819404

3
libical-1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c39b3448e4927a2de2775d853f52b3aaeb42400970a3db0b01a78987e6ec0b7
size 1199483

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sun Jun 9 09:18:41 UTC 2013 - toddrme2178@gmail.com
- New 1.x package.
This version uses the cmake build system
- Add devel-static subpackage
- Remove unneeded buildrequires
- Changed license from MPL-1.1 to MPL-1.0. That is the license
listed in the COPYING file and the headers.
- Removed scripts directory from documentation. Putting perl
files in the documentation directory is apparently no longer
allowed.
- Ran spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 28 18:37:35 UTC 2012 - jengelh@medozas.de Sat Jan 28 18:37:35 UTC 2012 - jengelh@medozas.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package libical # spec file for package libical
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,20 +16,19 @@
# #
Name: libical Name: libical
BuildRequires: db-devel Version: 1.0
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: python-devel
Url: http://sourceforge.net/projects/freeassociation/
Version: 0.48
Release: 0 Release: 0
%define sonum 1
Summary: An Implementation of Basic iCAL Protocols Summary: An Implementation of Basic iCAL Protocols
License: MPL-1.1 or LGPL-2.1 License: MPL-1.0 or LGPL-2.1
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Source: libical-%{version}.tar.bz2 Url: http://sourceforge.net/projects/freeassociation/
Source: libical-%{version}.tar.gz
Source2: baselibs.conf Source2: baselibs.conf
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -38,13 +37,13 @@ calendaring and scheduling protocols (RFC 2445, 2446, and 2447). It
parses iCal components and provides a C API for manipulating the parses iCal components and provides a C API for manipulating the
component properties, parameters, and subcomponents. component properties, parameters, and subcomponents.
%package -n libical0 %package -n %{name}%{sonum}
Summary: An Implementation of Basic iCAL Protocols Summary: An Implementation of Basic iCAL Protocols
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: libical = %{version} Provides: %{name} = %{version}
Obsoletes: libical < %{version} Obsoletes: %{name} < %{version}
%description -n libical0 %description -n %{name}%{sonum}
Libical is an open source implementation of the IETF's iCalendar Libical is an open source implementation of the IETF's iCalendar
calendaring and scheduling protocols (RFC 2445, 2446, and 2447). It calendaring and scheduling protocols (RFC 2445, 2446, and 2447). It
parses iCal components and provides a C API for manipulating the parses iCal components and provides a C API for manipulating the
@ -53,7 +52,7 @@ component properties, parameters, and subcomponents.
%package devel %package devel
Summary: An implementation of basic iCAL protocols Summary: An implementation of basic iCAL protocols
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libical0 = %{version} Requires: %{name}%{sonum} = %{version}
%description devel %description devel
Libical is an Open Source implementation of the IETF's iCalendar Libical is an Open Source implementation of the IETF's iCalendar
@ -61,10 +60,21 @@ Calendaring and Scheduling protocols. (RFC 2445, 2446, and 2447). It
parses iCal components and provides a C API for manipulating the parses iCal components and provides a C API for manipulating the
component properties, parameters, and subcomponents. component properties, parameters, and subcomponents.
%package devel-static
Summary: An implementation of basic iCAL protocols
Group: Development/Libraries/C and C++
Requires: %{name}-devel = %{version}
%description devel-static
Libical is an Open Source implementation of the IETF's iCalendar
Calendaring and Scheduling protocols. (RFC 2445, 2446, and 2447). It
parses iCal components and provides a C API for manipulating the
component properties, parameters, and subcomponents.
%package doc %package doc
Summary: An Implementation of Basic iCAL Protocols Summary: An Implementation of Basic iCAL Protocols
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libical0 = %{version} Recommends: %{name}%{sonum} = %{version}
%description doc %description doc
Libical is an open source implementation of the IETF's iCalendar Libical is an open source implementation of the IETF's iCalendar
@ -76,34 +86,29 @@ component properties, parameters, and subcomponents.
%setup -q %setup -q
%build %build
# triger autoreconf since the 0.46 tarball is missing autotools bootstrap files mkdir build
autoreconf -f -i pushd build
%{configure} \ cmake -DCMAKE_SKIP_RPATH=ON \
--with-bdb4 \ -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
--with-bdb4-dir=%{_prefix} \ -DLIB_SUFFIX="$(echo %_lib | cut -b4-)" \
--without-builtintz \ ..
--enable-shared \ make
--disable-static popd
%{__make} %{?_smp_mflags}
%install %install
%{makeinstall} pushd build
%{__rm} $RPM_BUILD_ROOT/%{_libdir}/libical*.la %make_install
%{__rm} doc/Makefile* popd
%{__rm} -rf examples/.deps rm examples/CMakeLists.txt
%{__rm} -rf examples/.libs rm examples/Makefile.*
%{__rm} examples/*.o
%{__rm} examples/doesnothing
%{__rm} scripts/Makefile*
%{__sed} -i -e '1s,.*,#!/usr/bin/perl,' scripts/mkneticali.pl
%post -n libical0 -p /sbin/ldconfig %post -n %{name}%{sonum} -p /sbin/ldconfig
%postun -n libical0 -p /sbin/ldconfig %postun -n %{name}%{sonum} -p /sbin/ldconfig
%files -n libical0 %files -n %{name}%{sonum}
%defattr(-,root,root) %defattr(-,root,root)
%doc README AUTHORS ChangeLog NEWS TEST THANKS TODO %doc AUTHORS README COPYING ChangeLog LICENSE NEWS TEST THANKS TODO
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
@ -111,10 +116,15 @@ autoreconf -f -i
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/libical.pc %{_libdir}/pkgconfig/libical.pc
%{_includedir}/ical.h %{_includedir}/ical.h
%{_includedir}/libical %{_includedir}/libical/
%files devel-static
%defattr(-,root,root)
%{_libdir}/*.a
%files doc %files doc
%defattr(-,root,root) %defattr(-,root,root)
%doc doc examples scripts %doc doc/*.txt
%doc examples/
%changelog %changelog