]> git.pld-linux.org Git - packages/mate-user-share.git/blob - mate-user-share.spec
31f65a1f442f56f4822d67f58f2c0612cec24c1b
[packages/mate-user-share.git] / mate-user-share.spec
1 #
2 # Conditional build:
3 %bcond_with     bluetooth       # Bluetooth support
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
9 Version:        1.22.0
10 Release:        1
11 License:        GPL v2+
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)
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
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
61
62 %description -n caja-extension-user-share
63 Share (user-level file sharing) extension for Caja (MATE file
64 manager).
65
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
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
93 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,jv,kab,ku_IQ,nah,nqo,pms,ur_PK}
94
95 %find_lang %{name} --with-mate
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}
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
127 %endif
This page took 0.033297 seconds and 2 git commands to generate.