File mingw64-libical.spec of Package mingw64-libical
#
# spec file for package mingw64-libical
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _name libical
Name: mingw64-%{_name}
Version: 3.0.10
Release: 0
%define sonum 2
Summary: An Implementation of Basic iCAL Protocols
License: MPL-1.0 or LGPL-2.1-only
Group: Development/Libraries/C and C++
Url: http://sourceforge.net/projects/freeassociation/
#Git-Clone: https://github.com/libical/libical
Source: https://github.com/libical/libical/releases/download/v%{version}/%{_name}-%{version}.tar.gz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
# TODO move to some base backage
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-kdewin-devel
BuildRequires: mingw64-libicu-devel
#BuildRequires: pkgconfig(icu-i18n)
%_mingw64_package_header_debug
BuildArch: noarch
%description
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 -n %{name}%{sonum}
Summary: An Implementation of Basic iCAL Protocols
Group: System/Libraries
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n %{name}%{sonum}
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 devel
Summary: Development files for libical, an implementation of basic iCAL protocols
Group: Development/Libraries/C and C++
Requires: %{name}%{sonum} = %{version}
%description devel
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 devel-static
Summary: Additional static library for development with libical
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
Summary: Example source code for libical-using programs
Group: Documentation/Other
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description doc
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.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{_name}-%{version}
%build
MINGW64_CXXFLAGS="%_mingw64_cxxflags -std=c++11"
%_mingw64_cmake -DCMAKE_THREAD_LIBS_INIT=kdewin -DICAL_GLIB=False ..
%_mingw64_cmake_build
%install
%_mingw64_cmake_install
%files -n %{name}%{sonum}
%defattr(-,root,root)
%doc AUTHORS ReadMe.txt ReleaseNotes.txt COPYING LICENSE TEST THANKS TODO
%{_mingw64_bindir}/*.dll
%dir %{_mingw64_datadir}/libical
%{_mingw64_datadir}/libical
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/*.dll.a
%{_mingw64_libdir}/pkgconfig/libical.pc
%{_mingw64_includedir}/libical/
# TODO move mingw64-filesystem
%dir %{_mingw64_libdir}/cmake
%{_mingw64_libdir}/cmake/LibIcal/
%files devel-static
%defattr(-,root,root)
%{_mingw64_libdir}/*.a
%exclude %{_mingw64_libdir}/*.dll.a
%files doc
%defattr(-,root,root)
%doc doc/*.txt
%doc examples/
%changelog