]> git.pld-linux.org Git - packages/mate-user-share.git/blob - mate-user-share.spec
3a4b3e6f09ba09c99bf06f5639957dbc19dd1a2b
[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.8.0
10 Release:        2
11 License:        GPL v2+
12 Group:          X11/Applications
13 Source0:        http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
14 # Source0-md5:  3a2a12991a7109c304c79365d56a523f
15 URL:            http://mate-desktop.org/
16 %{?with_caja:BuildRequires:     caja-devel}
17 BuildRequires:  dbus-devel >= 1.1.1
18 BuildRequires:  dbus-glib-devel
19 BuildRequires:  docbook-dtd412-xml
20 BuildRequires:  gettext-devel >= 0.10.40
21 BuildRequires:  glib2-devel >= 1:2.26.0
22 BuildRequires:  gnome-doc-utils
23 BuildRequires:  gtk+2-devel >= 2:2.12.0
24 BuildRequires:  intltool >= 0.35.0
25 BuildRequires:  libcanberra-gtk-devel
26 BuildRequires:  libnotify-devel >= 0.7.0
27 BuildRequires:  libselinux-devel
28 BuildRequires:  libunique-devel >= 1.0
29 %{?with_bluetooth:BuildRequires:        mate-bluetooth-devel >= 1.2.0}
30 BuildRequires:  pkgconfig
31 BuildRequires:  rpmbuild(find_lang) >= 1.36
32 BuildRequires:  yelp-tools
33 Requires(post,postun):  glib2 >= 1:2.26.0
34 Requires(post,postun):  gtk-update-icon-cache
35 Requires:       apache >= 2.2
36 Requires:       apache-mod_auth_digest >= 2.2
37 Requires:       apache-mod_authn_file >= 2.2
38 Requires:       apache-mod_authz_groupfile >= 2.2
39 Requires:       apache-mod_authz_user >= 2.2
40 Requires:       apache-mod_dav >= 2.2
41 Requires:       apache-mod_dnssd >= 0.6
42 Requires:       glib2 >= 1:2.26.0
43 Requires:       gtk+2 >= 2:2.12.0
44 Requires:       libnotify >= 0.7.0
45 %{?with_bluetooth:Requires:     mate-bluetooth-libs >= 1.2.0}
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 mate-user-share is a small package that binds together various free
50 software projects to bring easy to use user-level file sharing to the
51 masses.
52
53 %description -l pl.UTF-8
54 mate-user-share to mały pakiet, łączący kilka wolnodostępnych
55 projektów, aby zapewnić łatwy sposób współdzielenia plików na poziomie
56 użytkownika dostępny dla każdego.
57
58 %package -n caja-extension-user-share
59 Summary:        Share extension for Caja (MATE file manager)
60 Summary(pl.UTF-8):      Rozszerzenie współdzielenia plików dla zarządcy plików Caja
61 Group:          X11/Applications
62 Requires:       %{name} = %{version}-%{release}
63 Requires:       caja
64
65 %description -n caja-extension-user-share
66 Share (user-level file sharing) extension for Caja (MATE file
67 manager).
68
69 %description -n caja-extension-user-share -l pl.UTF-8
70 Rozszerzenie share (pozwalające na współdzielenie plików na poziomie
71 użytkownika) dla zarządcy plików Caja, przeznaczonego dla środowiska
72 MATE.
73
74 %prep
75 %setup -q
76
77 %build
78 %configure \
79         %{!?with_bluetooth:--disable-bluetooth} \
80         --disable-schemas-compile \
81         --disable-silent-rules \
82         --with-httpd=/usr/sbin/httpd \
83         --with-modules-path=/etc/httpd/modules
84
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %if %{with caja}
93 %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la
94 %endif
95
96 # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf
97 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-user-share.convert
98
99 %find_lang %{name} --with-mate
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post
105 %glib_compile_schemas
106 %update_icon_cache hicolor
107
108 %postun
109 %glib_compile_schemas
110 %update_icon_cache hicolor
111
112 %files -f %{name}.lang
113 %defattr(644,root,root,755)
114 %doc ChangeLog NEWS README
115 %attr(755,root,root) %{_bindir}/mate-file-share-properties
116 %attr(755,root,root) %{_libexecdir}/mate-user-share
117 /etc/xdg/autostart/mate-user-share-obexftp.desktop
118 /etc/xdg/autostart/mate-user-share-obexpush.desktop
119 /etc/xdg/autostart/mate-user-share-webdav.desktop
120 %{_datadir}/glib-2.0/schemas/org.mate.FileSharing.gschema.xml
121 %{_datadir}/mate-user-share
122 %{_desktopdir}/mate-user-share-properties.desktop
123 %{_iconsdir}/hicolor/*x*/apps/mate-obex-server.png
124 %{_mandir}/man1/mate-file-share-properties.1*
125
126 %if %{with caja}
127 %files -n caja-extension-user-share
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libcaja-share-extension.so
130 %endif
This page took 0.04492 seconds and 2 git commands to generate.