8f409b
8f409b
Name:    kdepim3
8f409b
Summary: Compatibility support for kdepim3 
8f409b
Version: 3.5.10
406fe7
Release: 32%{?dist}
8f409b
8f409b
License: GPLv2
8f409b
URL:     http://www.kde.org/
8f409b
Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/kdepim-%{version}.tar.bz2
49f05c
Patch0: kdepim-3.5.10-gcc.patch
Rex Dieter 0b6bce
# FTBFS with perl-5.22+, see https://bugzilla.redhat.com/show_bug.cgi?id=1239630
Rex Dieter 0b6bce
Patch1: kdepim-3.5.10-perl5_22.patch
d3b2b7
# FTBFS with gcc7
d3b2b7
Patch2: kdepim3-gcc7.patch
0a65b9
# FTBFS on aarch64
0a65b9
Patch3: kdepim-3.5.10-aarch64.patch
406fe7
# FTBFS with perl
406fe7
Patch4: kdepim3-perl.patch
8f409b
9ec9c5
BuildRequires: gcc-c++
cdc479
BuildRequires: bison flex flex-static
8f409b
BuildRequires: desktop-file-utils
8f409b
BuildRequires: kdelibs3-devel >= %{version}
8f409b
BuildRequires: zlib-devel
8f409b
BuildRequires: libart_lgpl-devel
8f409b
BuildRequires: cyrus-sasl-devel
8f409b
BuildRequires: lockdev-devel
8f409b
BuildRequires: python-devel
8f409b
## Crypto Stuff from http://kmail.kde.org/kmail-pgpmime-howto.html
8f409b
BuildRequires: gpgme-devel
8f409b
BuildRequires: libXpm-devel libXScrnSaver-devel
5bdb3e
BuildRequires: perl(Data::Dumper)
8f409b
Rex Dieter 45c21d
Provides: bundled(libical) = 0.24
Rex Dieter 45c21d
8f409b
%description
8f409b
%{summary}, including libkcal.
8f409b
8f409b
%package libs
8f409b
Summary: Runtime files for %{name}
8f409b
%description libs
8f5067
%{summary}, including libkcal.
8f409b
8f409b
%package devel
8f409b
Summary: Development files for %{name} 
8f409b
Requires: %{name}-libs = %{version}-%{release}
8f409b
Requires: kdelibs3-devel
6211c1
# kdepimlibs-devel-4.2.1-2 fixed to avoid conflicts -- Rex
6211c1
Conflicts: kdepimlibs-devel < 4.2.1-2
8f409b
%description devel
8f409b
%{summary}.
8f409b
8f409b
8f409b
%prep
8f409b
%setup -q -n kdepim-%{version}
8f409b
49f05c
%patch0 -p1 -b .gcc47
Rex Dieter 0b6bce
%patch1 -p1 -b .perl5_22
d3b2b7
%patch2 -p1 -b .gcc7
0a65b9
%ifarch aarch64
0a65b9
%patch3 -p1 -b .linker
0a65b9
%endif
406fe7
%patch4 -p1
8f409b
8f409b
%build
8f409b
unset QTDIR || : ; . /etc/profile.d/qt.sh
8f409b
8f409b
%configure \
8f409b
   --disable-dependency-tracking \
8f409b
   --disable-rpath \
8f409b
   --disable-debug --disable-warnings \
8f409b
   --includedir=%{_includedir}/kde \
8f409b
   --with-gpg=%{_bindir}/gpg \
8f409b
   --with-gpgsm=%{_bindir}/gpgsm \
8f409b
   --with-sasl \
8f409b
  %{?_with_gnokii} %{!?_with_gnokii:--without-gnokii} \
8f409b
  %{?_with_mal} %{!?_with_mal:--without-mal} \
8f409b
  %{?_with_pilot_link} %{!?_with_pilot_link:--without-pilot-link}
8f409b
8f409b
for lib in ktnef libkmime libemailfunctions libkcal libkdepim; do
8f409b
make %{?_smp_mflags} -C ${lib}
8f409b
done
8f409b
8f409b
8f409b
%install
8f409b
rm -rf %{buildroot} 
8f409b
8f409b
for lib in ktnef libkmime libemailfunctions libkcal libkdepim; do
8f409b
make install DESTDIR=%{buildroot} -C $lib
8f409b
done
8f409b
8f409b
#unpackaged files
8f409b
rm -f  %{buildroot}%{_libdir}/lib*.la
8f409b
rm -f  %{buildroot}%{_libdir}/libkdepim*
8f409b
rm -rf %{buildroot}%{_datadir}/apps/libkdepim/
8f409b
rm -rf %{buildroot}%{_datadir}/apps/kdepimwidgets/
8f409b
rm -f  %{buildroot}%{_libdir}/kde3/plugins/designer/*
8f409b
rm -f  %{buildroot}%{_libdir}/lib{kmime,ktnef}.so
8f409b
rm -rf %{buildroot}%{_includedir}/kde/ktnef/
8f409b
rm -rf %{buildroot}%{_datadir}/applications
8f409b
rm -rf %{buildroot}%{_datadir}/icons
8f409b
rm -rf %{buildroot}%{_datadir}/mimelnk
8f409b
rm -rf %{buildroot}%{_datadir}/apps/ktnef
8f409b
rm -f  %{buildroot}%{_bindir}/ktnef
8f409b
8f409b
bd40cd
%ldconfig_scriptlets libs
8f409b
8f409b
8f409b
8f409b
%files libs
8f409b
%doc README korganizer/COPYING
8f409b
%{_datadir}/config.kcfg/pimemoticons.kcfg
8f409b
%{_datadir}/apps/libical/
8f409b
%{_datadir}/services/kresources/kcal*
8f409b
%{_libdir}/libkcal.so.2*
8f409b
%{_libdir}/kde3/kcal*
8f409b
%{_libdir}/libkmime.so.2*
8f409b
%{_libdir}/libktnef.so.1*
8f409b
8f409b
%files devel
8f409b
%{_includedir}/kde/kdepimmacros.h
8f409b
%{_includedir}/kde/libemailfunctions/
8f409b
%{_includedir}/kde/libkcal/
8f409b
%{_libdir}/libkcal.so
8f409b
8f409b
8f409b
%changelog
406fe7
* Wed Aug 26 2020 Than Ngo <than@redhat.com> - 3.5.10-32
406fe7
- Fixed build failure
406fe7
0eb688
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-31
0eb688
- Second attempt - Rebuilt for
0eb688
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0eb688
ca4e2f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-30
ca4e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ca4e2f
d45dda
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-29
d45dda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d45dda
53a58f
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-28
53a58f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
53a58f
0a65b9
* Mon Feb 11 2019 Than Ngo <than@redhat.com> - 3.5.10-27
0a65b9
- fixed FTBFS on aarch64
0a65b9
300e92
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-26
300e92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
300e92
9ec9c5
* Fri Jul 20 2018 Rex Dieter <rdieter@fedoraproject.org> - 3.5.10-25
9ec9c5
- BR: gcc-c++
9ec9c5
118721
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-24
118721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
118721
004645
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-23
004645
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
004645
d3b2b7
* Sat Aug 26 2017 Than Ngo <than@redhat.com> - 3.5.10-22
d3b2b7
- fixed FTBFS with gcc7
d3b2b7
b5c585
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-21
b5c585
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b5c585
52c877
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-20
52c877
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
52c877
36f5c5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-19
36f5c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
36f5c5
Rex Dieter 45c21d
* Tue Jul 19 2016 Rex Dieter <rdieter@fedoraproject.org> - 3.5.10-18
Rex Dieter 45c21d
- Provides: bundled(libical) = 0.24 (#1079727)
Rex Dieter 45c21d
5abc5c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.10-17
5abc5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5abc5c
Rex Dieter 0b6bce
* Mon Jul 06 2015 Rex Dieter <rdieter@fedoraproject.org> 3.5.10-16
Rex Dieter 0b6bce
- kdepim3 FTBFS (#1239630)
Rex Dieter 0b6bce
bfaa82
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-15
bfaa82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bfaa82
dccba4
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.5.10-14
dccba4
- Rebuilt for GCC 5 C++11 ABI change
dccba4
60d496
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-13
60d496
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
60d496
18ef96
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-12
18ef96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
18ef96
e5b8e6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-11
e5b8e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5b8e6
7e9a90
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-10
7e9a90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7e9a90
5bdb3e
* Tue Jul 24 2012 Rex Dieter <rdieter@fedoraproject.org> 3.5.10-9
5bdb3e
- BR: perl(Data::Dumper)
5bdb3e
f91ce2
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-8
f91ce2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f91ce2
49f05c
* Wed Feb 08 2012 Than Ngo <than@redhat.com> - 3.5.10-7
49f05c
- fix build failure with gcc-4.7
49f05c
759efe
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-6
759efe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
759efe
22b90b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-5
22b90b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
22b90b
cdc479
* Wed Dec 08 2010 Ondrej Vasik <ovasik@redhat.com> - 3.5.10-4
cdc479
- BuildRequire flex-static (-lfl) (#660785)
cdc479
8f5067
* Tue Jan 12 2010 Radek Novacek <rnovacek@redhat.com> - 3.5.10-3
8f5067
- Fixed "macro in summary" error
8f5067
d9c552
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.10-2
d9c552
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d9c552
8f409b
* Tue Mar 03 2009 Rex Dieter <rdieter@fedoraproject.org> 3.5.10-1
8f409b
- first try at kdepim3 compat pkg, including libkcal
8f409b