3 %bcond_with bluetooth # Bluetooth support
4 %bcond_without caja # Caja (mate-file-manager) extension
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
12 Group: X11/Applications
13 Source0: http://pub.mate-desktop.org/releases/1.22/%{name}-%{version}.tar.xz
14 # Source0-md5: dd21547d3cf248f9c3f3d79eb1bddb3b
15 URL: http://mate-desktop.org/
16 %{?with_caja:BuildRequires: caja-devel >= 1.17.1}
17 BuildRequires: dbus-glib-devel
18 BuildRequires: docbook-dtd412-xml
19 BuildRequires: gettext-tools >= 0.10.40
20 BuildRequires: glib2-devel >= 1:2.50.0
21 BuildRequires: gtk+3-devel >= 3.22
22 BuildRequires: intltool >= 0.35.0
23 BuildRequires: libcanberra-gtk3-devel
24 BuildRequires: libnotify-devel >= 0.7.0
25 BuildRequires: libselinux-devel
26 %{?with_bluetooth:BuildRequires: mate-bluetooth-devel >= 1.2.0}
27 BuildRequires: pkgconfig
28 BuildRequires: rpmbuild(find_lang) >= 1.36
29 BuildRequires: yelp-tools
30 Requires(post,postun): glib2 >= 1:2.50.0
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
39 Requires: glib2 >= 1:2.50.0
40 Requires: gtk+3 >= 3.22
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)
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
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.
55 %package -n caja-extension-user-share
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}
60 Requires: caja >= 1.17.1
62 %description -n caja-extension-user-share
63 Share (user-level file sharing) extension for Caja (MATE file
66 %description -n caja-extension-user-share -l pl.UTF-8
67 Rozszerzenie share (pozwalające na współdzielenie plików na poziomie
68 użytkownika) dla zarządcy plików Caja, przeznaczonego dla środowiska
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
85 rm -rf $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la
93 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,jv,ku_IQ,nah,nqo,pms,ur_PK}
95 %find_lang %{name} --with-mate
98 rm -rf $RPM_BUILD_ROOT
101 %glib_compile_schemas
102 %update_icon_cache hicolor
105 %glib_compile_schemas
106 %update_icon_cache hicolor
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*
123 %files -n caja-extension-user-share
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libcaja-user-share.so
126 %{_datadir}/caja/extensions/libcaja-user-share.caja-extension