Sync spec with MeeGo upstream and fix some issues
[accounts-sso:jlaako-accounts-qt.git] / rpm / libaccounts-qt.spec
1 Name:           libaccounts-qt
2 Version:        0.42
3 Release:        2
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
46 %build
47 qmake CONFIG+=release
48 make %{?_smp_mflags}
49
50 %install
51 make INSTALL_ROOT=%{buildroot} install
52 rm %{buildroot}%{_datadir}/doc/accounts-qt/html/installdox
53 %fdupes %{buildroot}%{_includedir}
54 %fdupes %{buildroot}%{_docdir}
55
56 %post -p /sbin/ldconfig
57
58 %postun -p /sbin/ldconfig
59
60 %files
61 %defattr(-,root,root,-)
62 %doc README COPYING
63 %{_bindir}/account-tool
64 %{_libdir}/libaccounts-qt.so.*
65
66 %files devel
67 %defattr(-,root,root,-)
68 %{_includedir}/accounts-qt/Accounts/Account
69 %{_includedir}/accounts-qt/Accounts/Error
70 %{_includedir}/accounts-qt/Accounts/Manager
71 %{_includedir}/accounts-qt/Accounts/Provider
72 %{_includedir}/accounts-qt/Accounts/Service
73 %{_includedir}/accounts-qt/Accounts/ServiceType
74 %{_includedir}/accounts-qt/Accounts/account.h
75 %{_includedir}/accounts-qt/Accounts/accountscommon.h
76 %{_includedir}/accounts-qt/Accounts/error.h
77 %{_includedir}/accounts-qt/Accounts/manager.h
78 %{_includedir}/accounts-qt/Accounts/provider.h
79 %{_includedir}/accounts-qt/Accounts/service-type.h
80 %{_includedir}/accounts-qt/Accounts/service.h
81 %{_includedir}/accounts-qt/account.h
82 %{_includedir}/accounts-qt/accountscommon.h
83 %{_includedir}/accounts-qt/manager.h
84 %{_includedir}/accounts-qt/provider.h
85 %{_includedir}/accounts-qt/service.h
86 %{_libdir}/libaccounts-qt.so
87 %{_libdir}/pkgconfig/accounts-qt.pc
88 %{_datadir}/qt4/mkspecs/features/accounts.prf
89
90 %files tests
91 %defattr(-,root,root,-)
92 %{_bindir}/accountstest
93 %{_datadir}/libaccounts-qt-tests/e-mail.service-type
94 %{_datadir}/libaccounts-qt-tests/MyProvider.provider
95 %{_datadir}/libaccounts-qt-tests/MyService.service
96 %{_datadir}/libaccounts-qt-tests/OtherService.service
97 %{_datadir}/libaccounts-qt-tests/tests.xml
98
99 %files doc
100 %defattr(-,root,root,-)
101 %{_datadir}/doc/*
102
103 %changelog
104 * Thu Jun 30 2011 Jussi Laako <jussi.laako@linux.intel.com> - 0.42
105 - Update to 0.42
106
107 * Mon Mar 28 2011 Alberto Mardegan <mardy@users.sourceforge.net> - 0.39
108 - Update to latest upstream version
109   + Documentation updates
110
111 * Fri Feb 11 2011 Bart Cerneels <bart.cerneels@collabora.co.uk> - 0.38.1
112 - Update to lastest upstream version (fixes BMC#13447)
113   + Bugfix: API: Method needed for getting provider icon
114   + Bugfix: Copyright tag not defined in accounts-qt.
115   + Bugfix: Confusing documentation in Accounts::Account.
116
117 * Fri Dec 10 2010 Paolo Capriotti <paolo.capriotti@collabora.co.uk> - 0.36
118 - Update to latest upstream version (fixes BMC#11162)
119   + Bugfix: don't override distribution's compiler flags 
120   + Enable RTTI support.
121 - Remove patch for QMAKE_CXXFLAGS
122
123 * Wed Sep 15 2010 Fathi Boudra <fathi.boudra@nokia.com> - 0.34
124 - Update to 0.34 (BMC#7258)
125 - Add a fix for the overwritten QMAKE_CXXFLAGS
126 - Clean up packaging
127
128 * Wed Aug 11 2010 Kaitlin Rupert <kaitlin.rupert@intel.com> - 0.31
129 - mkspec files now install to /usr/share due to Qt beta2 update
130
131 * Mon Aug 02 2010 Bernd Wachter <ext-bernd.wachter@nokia.com> - 0.31
132 - Update to latest upstream version
133
134 * Mon Jun 14 2010 Bernd Wachter <ext-bernd.wachter@nokia.com> - 0.28
135 - Update to latest version
136
137 * Wed Apr 21 2010 Bernd Wachter <bwachter@lart.info> - 0.24+0m6-1
138 - First RPM version