Make /etc/meego-release copy conditional
[accounts-sso:jlaako-accounts-qt.git] / rpm / libaccounts-qt.spec
1 Name:           libaccounts-qt
2 Version:        1.1.4
3 Release:        4
4 License:        LGPLv2.1
5 Summary:        Accounts framework (Qt binding)
6 Url:            http://gitorious.org/accounts-sso/accounts-qt
7 Group:          System/Libraries
8 Source0:        %{name}-%{version}.tar.gz
9 BuildRequires:  doxygen
10 BuildRequires:  fdupes
11 BuildRequires:  graphviz
12 BuildRequires:  pkgconfig(QtCore)
13 BuildRequires:  pkgconfig(glib-2.0)
14 BuildRequires:  pkgconfig(libaccounts-glib) >= 0.64
15
16 %description
17 Framework to provide the accounts.
18
19 %package devel
20 Summary:        Development files for accounts-qt
21 Group:          Development/Libraries
22 Requires:       %{name} = %{version}
23 Provides:       accounts-qt-dev
24
25 %description devel
26 Headers and static libraries for the accounts.
27
28 %package tests
29 Summary:        Tests for accounts-qt
30 Group:          System/Libraries
31 Requires:       %{name} = %{version}
32
33 %description tests
34 Tests for accounts-qt.
35
36 %package doc
37 Summary:        Documentation for accounts-qt
38 Group:          Documentation
39
40 %description doc
41 HTML documentation for the accounts.
42
43 %prep
44 %setup -q -n %{name}-%{version}
45 if [ -x /etc/meego-release ]; then
46         cp /etc/meego-release ./
47 fi
48
49 %build
50 export CFLAGS="$RPM_OPT_FLAGS"
51 export CXXFLAGS="$CFLAGS"
52 qmake QMAKE_CXXFLAGS="$CXXFLAGS" CONFIG+=release
53 make %{?_smp_mflags}
54
55 %install
56 rm -rf %{buildroot}
57 make INSTALL_ROOT=%{buildroot} install
58 rm %{buildroot}%{_datadir}/doc/accounts-qt/html/installdox
59 %fdupes %{buildroot}%{_includedir}
60 %fdupes %{buildroot}%{_docdir}
61
62 %post -p /sbin/ldconfig
63
64 %postun -p /sbin/ldconfig
65
66 %files
67 %defattr(-,root,root,-)
68 %doc README COPYING
69 %{_bindir}/account-tool
70 %{_libdir}/libaccounts-qt.so.*
71
72 %files devel
73 %defattr(-,root,root,-)
74 %{_includedir}/accounts-qt/Accounts/Account
75 %{_includedir}/accounts-qt/Accounts/Error
76 %{_includedir}/accounts-qt/Accounts/Manager
77 %{_includedir}/accounts-qt/Accounts/Provider
78 %{_includedir}/accounts-qt/Accounts/Service
79 %{_includedir}/accounts-qt/Accounts/ServiceType
80 %{_includedir}/accounts-qt/Accounts/account.h
81 %{_includedir}/accounts-qt/Accounts/accountscommon.h
82 %{_includedir}/accounts-qt/Accounts/error.h
83 %{_includedir}/accounts-qt/Accounts/manager.h
84 %{_includedir}/accounts-qt/Accounts/provider.h
85 %{_includedir}/accounts-qt/Accounts/service-type.h
86 %{_includedir}/accounts-qt/Accounts/service.h
87 %{_includedir}/accounts-qt/account.h
88 %{_includedir}/accounts-qt/accountscommon.h
89 %{_includedir}/accounts-qt/manager.h
90 %{_includedir}/accounts-qt/provider.h
91 %{_includedir}/accounts-qt/service.h
92 %{_libdir}/libaccounts-qt.so
93 %{_libdir}/pkgconfig/accounts-qt.pc
94 %{_datadir}/qt4/mkspecs/features/accounts.prf
95
96 %files tests
97 %defattr(-,root,root,-)
98 %{_bindir}/accountstest
99 %{_datadir}/libaccounts-qt-tests/e-mail.service-type
100 %{_datadir}/libaccounts-qt-tests/MyProvider.provider
101 %{_datadir}/libaccounts-qt-tests/MyService.service
102 %{_datadir}/libaccounts-qt-tests/OtherService.service
103 %{_datadir}/libaccounts-qt-tests/tests.xml
104
105 %files doc
106 %defattr(-,root,root,-)
107 %{_datadir}/doc/*
108
109 %changelog
110 * Thu Jun 30 2011 Jussi Laako <jussi.laako@linux.intel.com> - 0.42
111 - Update to 0.42
112
113 * Mon Mar 28 2011 Alberto Mardegan <mardy@users.sourceforge.net> - 0.39
114 - Update to latest upstream version
115   + Documentation updates
116
117 * Fri Feb 11 2011 Bart Cerneels <bart.cerneels@collabora.co.uk> - 0.38.1
118 - Update to lastest upstream version (fixes BMC#13447)
119   + Bugfix: API: Method needed for getting provider icon
120   + Bugfix: Copyright tag not defined in accounts-qt.
121   + Bugfix: Confusing documentation in Accounts::Account.
122
123 * Fri Dec 10 2010 Paolo Capriotti <paolo.capriotti@collabora.co.uk> - 0.36
124 - Update to latest upstream version (fixes BMC#11162)
125   + Bugfix: don't override distribution's compiler flags 
126   + Enable RTTI support.
127 - Remove patch for QMAKE_CXXFLAGS
128
129 * Wed Sep 15 2010 Fathi Boudra <fathi.boudra@nokia.com> - 0.34
130 - Update to 0.34 (BMC#7258)
131 - Add a fix for the overwritten QMAKE_CXXFLAGS
132 - Clean up packaging
133
134 * Wed Aug 11 2010 Kaitlin Rupert <kaitlin.rupert@intel.com> - 0.31
135 - mkspec files now install to /usr/share due to Qt beta2 update
136
137 * Mon Aug 02 2010 Bernd Wachter <ext-bernd.wachter@nokia.com> - 0.31
138 - Update to latest upstream version
139
140 * Mon Jun 14 2010 Bernd Wachter <ext-bernd.wachter@nokia.com> - 0.28
141 - Update to latest version
142
143 * Wed Apr 21 2010 Bernd Wachter <bwachter@lart.info> - 0.24+0m6-1
144 - First RPM version