]> git.pld-linux.org Git - packages/libayatana-indicator.git/blame - libayatana-indicator.spec
up to 0.9.1
[packages/libayatana-indicator.git] / libayatana-indicator.spec
CommitLineData
8caa230c
JP
1# TODO:
2# - package systemd user target unit
3
e269c381
JB
4Summary: Shared functions for Ayatana indicators (GTK+ 2.x version)
5Summary(pl.UTF-8): Funkcje współdzielone dla wskaźników Ayatana (wersja dla GTK+ 2.x)
8caa230c 6Name: libayatana-indicator
fb812cbc 7Version: 0.9.1
8caa230c 8Release: 1
ecd41185
ER
9License: GPL v3
10Group: Libraries
8caa230c
JP
11#Source0Download: https://github.com/AyatanaIndicators/libayatana-indicator/releases
12Source0: https://github.com/AyatanaIndicators/libayatana-indicator/archive/%{version}/%{name}-%{version}.tar.gz
fb812cbc 13# Source0-md5: b7a7fd24a749cb384431b8309db65a58
d872b21f 14Patch0: build-type.patch
8caa230c 15URL: https://github.com/AyatanaIndicators/libayatana-indicator
d872b21f
JP
16BuildRequires: ayatana-ido-devel >= 0.8.2
17BuildRequires: cmake >= 3.13
8caa230c 18BuildRequires: glib2-devel >= 1:2.37
e269c381 19BuildRequires: gtk+2-devel >= 2:2.18
d872b21f 20BuildRequires: gtk+3-devel >= 3.24
f577a488 21BuildRequires: pkgconfig
d872b21f 22BuildRequires: rpmbuild(macros) >= 1.605
e269c381 23BuildRequires: sed >= 4.0
de8db6a4 24BuildRequires: which
8caa230c 25Requires: glib2 >= 1:2.37
e269c381 26Requires: gtk+2 >= 2:2.18
ecd41185
ER
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30A set of symbols and convenience functions that all Ayatana indicators
e269c381
JB
31are likely to use. This package contains GTK+ 2.x version.
32
33%description -l pl.UTF-8
34Zbiór symboli i wygodnych funkcji, które mogą być używane przez
35wszystkie wskaźniki Ayatana. Ten pakiet zawiera wersję dla GTK+ 2.x.
ecd41185
ER
36
37%package devel
8caa230c
JP
38Summary: Development files for libayatana-indicator (GTK+ 2.x version)
39Summary(pl.UTF-8): Pliki programistyczne biblioteki libayatana-indicator (wersja dla GTK+ 2.x)
ecd41185
ER
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
8caa230c 42Requires: glib2-devel >= 1:2.37
e269c381 43Requires: gtk+2-devel >= 2:2.18
ecd41185
ER
44
45%description devel
e269c381 46This package contains the header files for developing applications
8caa230c 47that use libayatana-indicator (GTK+ 2.x version).
e269c381
JB
48
49%description devel -l pl.UTF-8
50Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
8caa230c
JP
51wykorzystujących bibliotekę libayatana-indicator (w wersji dla GTK+
522.x).
ecd41185
ER
53
54%package gtk3
e269c381
JB
55Summary: Shared functions for Ayatana indicators (GTK+ 3.x version)
56Summary(pl.UTF-8): Funkcje współdzielone dla wskaźników Ayatana (wersja dla GTK+ 3.x)
ecd41185 57Group: Libraries
8caa230c 58Requires: glib2 >= 1:2.37
d872b21f 59Requires: gtk+3 >= 3.24
ecd41185
ER
60
61%description gtk3
62A set of symbols and convenience functions that all Ayatana indicators
e269c381
JB
63are likely to use. This package contains GTK+ 3.x version.
64
65%description gtk3 -l pl.UTF-8
66Zbiór symboli i wygodnych funkcji, które mogą być używane przez
67wszystkie wskaźniki Ayatana. Ten pakiet zawiera wersję dla GTK+ 3.x.
ecd41185
ER
68
69%package gtk3-devel
8caa230c
JP
70Summary: Development files for libayatana-indicator (GTK+ 3.x version)
71Summary(pl.UTF-8): Pliki programistyczne biblioteki libayatana-indicator (wersja dla GTK+ 3.x)
ecd41185
ER
72Group: Development/Libraries
73Requires: %{name}-gtk3 = %{version}-%{release}
8caa230c 74Requires: glib2-devel >= 1:2.37
d872b21f 75Requires: gtk+3-devel >= 3.24
ecd41185
ER
76
77%description gtk3-devel
e269c381 78This package contains the header files for developing applications
8caa230c 79that use libayatana-indicator (GTK+ 3.x version).
e269c381
JB
80
81%description gtk3-devel -l pl.UTF-8
82Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
8caa230c
JP
83wykorzystujących bibliotekę libayatana-indicator (w wersji dla GTK+
843.x).
ecd41185
ER
85
86%prep
87%setup -q
d872b21f 88%patch0 -p1
ecd41185
ER
89
90%build
91# we build it twice, once against GTK+ 3 and once against GTK+ 2, so
92# both GTK+ 2 and GTK+ 3 apps can use it; the GTK+ 3 build is
8caa230c 93# libayatana-indicator-gtk3. When we have no need for the GTK+ 2 build any more
ecd41185
ER
94# we can drop the -gtk3 package and have the main package build against
95# GTK+ 3.
96install -d build-gtk{2,3}
97cd build-gtk2
d872b21f
JP
98%cmake \
99 -DFLAVOUR_GTK2:BOOL=ON \
100 ..
e269c381 101%{__make}
ecd41185
ER
102
103cd ../build-gtk3
d872b21f
JP
104%cmake \
105 -DFLAVOUR_GTK3:BOOL=ON \
106 ..
e269c381 107%{__make}
ecd41185
ER
108
109%install
110rm -rf $RPM_BUILD_ROOT
e269c381 111
ecd41185
ER
112%{__make} -C build-gtk2 install -j1 \
113 DESTDIR=$RPM_BUILD_ROOT
114%{__make} -C build-gtk3 install -j1 \
115 DESTDIR=$RPM_BUILD_ROOT
116
416519b0 117# dirs for library users, see .pc files for paths
8caa230c
JP
118install -d $RPM_BUILD_ROOT%{_libdir}/ayatana-{indicators,indicators3}/7
119install -d $RPM_BUILD_ROOT%{_datadir}/libayatana-indicator/icons
416519b0 120
ecd41185
ER
121%clean
122rm -rf $RPM_BUILD_ROOT
123
124%post -p /sbin/ldconfig
125%postun -p /sbin/ldconfig
416519b0 126
ecd41185
ER
127%post gtk3 -p /sbin/ldconfig
128%postun gtk3 -p /sbin/ldconfig
129
130%files
131%defattr(644,root,root,755)
e269c381 132%doc AUTHORS ChangeLog NEWS
8caa230c
JP
133%attr(755,root,root) %{_libdir}/libayatana-indicator.so.*.*.*
134%attr(755,root,root) %ghost %{_libdir}/libayatana-indicator.so.7
135%dir %{_libdir}/ayatana-indicators
136%dir %{_libdir}/ayatana-indicators/7
137%dir %{_datadir}/libayatana-indicator
138%dir %{_datadir}/libayatana-indicator/icons
ecd41185
ER
139
140%files devel
141%defattr(644,root,root,755)
8caa230c
JP
142%attr(755,root,root) %{_libdir}/libayatana-indicator.so
143%{_includedir}/libayatana-indicator-0.4
144%{_pkgconfigdir}/ayatana-indicator-0.4.pc
ecd41185 145# This is marked as 'for development use only'
8caa230c 146%{_datadir}/libayatana-indicator/80indicator-debugging
ecd41185
ER
147
148%files gtk3
149%defattr(644,root,root,755)
e269c381 150%doc AUTHORS ChangeLog NEWS
8caa230c
JP
151%attr(755,root,root) %{_libdir}/libayatana-indicator3.so.*.*.*
152%attr(755,root,root) %ghost %{_libdir}/libayatana-indicator3.so.7
d872b21f
JP
153%dir %{_libexecdir}/libayatana-indicator
154%attr(755,root,root) %{_libexecdir}/libayatana-indicator/ayatana-indicator-loader3
8caa230c
JP
155%dir %{_libdir}/ayatana-indicators3
156%dir %{_libdir}/ayatana-indicators3/7
157%dir %{_datadir}/libayatana-indicator
158%dir %{_datadir}/libayatana-indicator/icons
ecd41185
ER
159
160%files gtk3-devel
161%defattr(644,root,root,755)
8caa230c
JP
162%attr(755,root,root) %{_libdir}/libayatana-indicator3.so
163%{_includedir}/libayatana-indicator3-0.4
164%{_pkgconfigdir}/ayatana-indicator3-0.4.pc
This page took 0.097946 seconds and 4 git commands to generate.