]>
Commit | Line | Data |
---|---|---|
baa77069 JB |
1 | # |
2 | # Conditional build: | |
0a0400fe | 3 | %bcond_with bluetooth # Bluetooth support |
baa77069 JB |
4 | %bcond_without caja # Caja (mate-file-manager) extension |
5 | # | |
6 | Summary: User-level file sharing for MATE desktop | |
7 | Summary(pl.UTF-8): Współdzielenie plików na poziomie użytkownika dla środowiska MATE | |
8 | Name: mate-user-share | |
d7f57d7a | 9 | Version: 1.22.0 |
f5e39718 | 10 | Release: 1 |
baa77069 JB |
11 | License: GPL v2+ |
12 | Group: X11/Applications | |
d7f57d7a JP |
13 | Source0: http://pub.mate-desktop.org/releases/1.22/%{name}-%{version}.tar.xz |
14 | # Source0-md5: dd21547d3cf248f9c3f3d79eb1bddb3b | |
baa77069 | 15 | URL: http://mate-desktop.org/ |
7851a49c | 16 | %{?with_caja:BuildRequires: caja-devel >= 1.17.1} |
baa77069 JB |
17 | BuildRequires: dbus-glib-devel |
18 | BuildRequires: docbook-dtd412-xml | |
32edb798 | 19 | BuildRequires: gettext-tools >= 0.10.40 |
89c73782 JP |
20 | BuildRequires: glib2-devel >= 1:2.50.0 |
21 | BuildRequires: gtk+3-devel >= 3.22 | |
baa77069 | 22 | BuildRequires: intltool >= 0.35.0 |
7851a49c | 23 | BuildRequires: libcanberra-gtk3-devel |
baa77069 JB |
24 | BuildRequires: libnotify-devel >= 0.7.0 |
25 | BuildRequires: libselinux-devel | |
baa77069 | 26 | %{?with_bluetooth:BuildRequires: mate-bluetooth-devel >= 1.2.0} |
baa77069 JB |
27 | BuildRequires: pkgconfig |
28 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
42329b96 | 29 | BuildRequires: yelp-tools |
89c73782 | 30 | Requires(post,postun): glib2 >= 1:2.50.0 |
baa77069 JB |
31 | Requires(post,postun): gtk-update-icon-cache |
32 | Requires: apache >= 2.2 | |
33 | Requires: apache-mod_auth_digest >= 2.2 | |
34 | Requires: apache-mod_authn_file >= 2.2 | |
35 | Requires: apache-mod_authz_groupfile >= 2.2 | |
36 | Requires: apache-mod_authz_user >= 2.2 | |
37 | Requires: apache-mod_dav >= 2.2 | |
38 | Requires: apache-mod_dnssd >= 0.6 | |
81e06a96 | 39 | Requires: glib2 >= 1:2.50.0 |
89c73782 | 40 | Requires: gtk+3 >= 3.22 |
baa77069 JB |
41 | Requires: libnotify >= 0.7.0 |
42 | %{?with_bluetooth:Requires: mate-bluetooth-libs >= 1.2.0} | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | mate-user-share is a small package that binds together various free | |
47 | software projects to bring easy to use user-level file sharing to the | |
48 | masses. | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | mate-user-share to mały pakiet, łączący kilka wolnodostępnych | |
52 | projektów, aby zapewnić łatwy sposób współdzielenia plików na poziomie | |
53 | użytkownika dostępny dla każdego. | |
54 | ||
26b971b4 | 55 | %package -n caja-extension-user-share |
baa77069 JB |
56 | Summary: Share extension for Caja (MATE file manager) |
57 | Summary(pl.UTF-8): Rozszerzenie współdzielenia plików dla zarządcy plików Caja | |
58 | Group: X11/Applications | |
59 | Requires: %{name} = %{version}-%{release} | |
7851a49c | 60 | Requires: caja >= 1.17.1 |
baa77069 | 61 | |
26b971b4 | 62 | %description -n caja-extension-user-share |
baa77069 JB |
63 | Share (user-level file sharing) extension for Caja (MATE file |
64 | manager). | |
65 | ||
26b971b4 | 66 | %description -n caja-extension-user-share -l pl.UTF-8 |
baa77069 JB |
67 | Rozszerzenie share (pozwalające na współdzielenie plików na poziomie |
68 | użytkownika) dla zarządcy plików Caja, przeznaczonego dla środowiska | |
69 | MATE. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | %configure \ | |
76 | %{!?with_bluetooth:--disable-bluetooth} \ | |
77 | --disable-schemas-compile \ | |
78 | --disable-silent-rules \ | |
79 | --with-httpd=/usr/sbin/httpd \ | |
80 | --with-modules-path=/etc/httpd/modules | |
81 | ||
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | %if %{with caja} | |
90 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la | |
91 | %endif | |
92 | ||
2dff534d | 93 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,jv,ku_IQ,nah,nqo,pms,ur_PK} |
baa77069 | 94 | |
42329b96 | 95 | %find_lang %{name} --with-mate |
baa77069 JB |
96 | |
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post | |
101 | %glib_compile_schemas | |
102 | %update_icon_cache hicolor | |
103 | ||
104 | %postun | |
105 | %glib_compile_schemas | |
106 | %update_icon_cache hicolor | |
107 | ||
108 | %files -f %{name}.lang | |
109 | %defattr(644,root,root,755) | |
110 | %doc ChangeLog NEWS README | |
111 | %attr(755,root,root) %{_bindir}/mate-file-share-properties | |
112 | %attr(755,root,root) %{_libexecdir}/mate-user-share | |
113 | /etc/xdg/autostart/mate-user-share-obexftp.desktop | |
114 | /etc/xdg/autostart/mate-user-share-obexpush.desktop | |
115 | /etc/xdg/autostart/mate-user-share-webdav.desktop | |
116 | %{_datadir}/glib-2.0/schemas/org.mate.FileSharing.gschema.xml | |
117 | %{_datadir}/mate-user-share | |
118 | %{_desktopdir}/mate-user-share-properties.desktop | |
119 | %{_iconsdir}/hicolor/*x*/apps/mate-obex-server.png | |
120 | %{_mandir}/man1/mate-file-share-properties.1* | |
121 | ||
122 | %if %{with caja} | |
26b971b4 | 123 | %files -n caja-extension-user-share |
baa77069 | 124 | %defattr(644,root,root,755) |
2ee73eca JB |
125 | %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libcaja-user-share.so |
126 | %{_datadir}/caja/extensions/libcaja-user-share.caja-extension | |
baa77069 | 127 | %endif |