Commit fa6ce83fa0d70465bbf0571b34bb533de36da79c

Authored by Perry Werneck
1 parent 10b61fa5

Updating control file.

Showing 1 changed file with 20 additions and 14 deletions   Show diff stats
rpm/pw3270.spec
... ... @@ -30,14 +30,14 @@ License: GPL-2.0
30 30 Group: System/X11/Terminals
31 31 Url: https://github.com/PerryWerneck/pw3270
32 32  
33   -Source: pw3270-%{version}.tar.xz
  33 +Source: pw3270-%{version}.tar.xz
34 34  
35 35 BuildRoot: %{_tmppath}/%{name}-%{version}-build
36 36  
37 37 Requires: shared-mime-info
38 38 Requires: %{name}-branding = %{version}
39 39  
40   -BuildRequires: update-desktop-files
  40 +BuildRequires: update-desktop-files
41 41  
42 42 %glib2_gsettings_schema_requires
43 43  
... ... @@ -122,9 +122,9 @@ Based on the original x3270 code, pw3270 was originally created for Banco do Bra
122 122 %package branding
123 123 Summary: Default branding for %{name}
124 124 Group: System/X11/Terminals
125   -Requires: %{name} = %{version}
126 125  
127   -Requires(post): desktop-file-utils
  126 +Requires: %{name} = %{version}
  127 +Requires(post): desktop-file-utils
128 128 Requires(postun): desktop-file-utils
129 129  
130 130 %description branding
... ... @@ -138,7 +138,6 @@ Group: System/X11/Terminals
138 138 Requires: %{name} = %{version}
139 139 BuildArch: noarch
140 140  
141   -Provides: pw3270-keypads = %{version}
142 141 Conflicts: otherproviders(pw3270-keypads)
143 142 Enhances: %{name}
144 143  
... ... @@ -170,9 +169,8 @@ make all -j1
170 169  
171 170 %fdupes %{buildroot}/%{_prefix}
172 171  
173   -#---[ Files ]---------------------------------------------------------------------------------------------------------
174   -
175 172 %files -f langfiles
  173 +%defattr(-,root,root)
176 174 %license LICENSE
177 175 %doc AUTHORS README.md
178 176  
... ... @@ -181,27 +179,35 @@ make all -j1
181 179 %dir %{_datadir}/%{_product}/ui
182 180 %dir %{_datadir}/%{_product}/keypad
183 181 %dir %{_libdir}/%{_product}-plugins
  182 +%dir %{_datadir}/%{_product}/icons
184 183  
185 184 %{_bindir}/%{_product}
186 185  
  186 +# Configuration & Themes
187 187 %{_datadir}/glib-2.0/schemas/*.xml
  188 +%{_datadir}/%{_product}/icons/gtk-*.svg
  189 +
  190 +%{_datadir}/pixmaps/*.png
  191 +
  192 +%{_datadir}/applications/*.desktop
  193 +%{_datadir}/appdata/%{_product}.appdata.xml
  194 +
  195 +%{_datadir}/mime/packages/*.xml
188 196  
189 197 %files branding
  198 +%defattr(-,root,root)
  199 +
190 200 %{_datadir}/%{_product}/ui/*
191 201 %{_datadir}/%{_product}/*.png
192   -%{_datadir}/applications/*.desktop
193   -%{_datadir}/pixmaps/*.png
194   -%{_datadir}/mime/packages/*.xml
  202 +%{_datadir}/%{_product}/icons/%{_product}.svg
195 203  
196 204 %files keypads
197 205 %{_datadir}/%{_product}/keypad/*
198 206  
199   -#---[ Scripts ]-------------------------------------------------------------------------------------------------------
200   -
201   -%post branding
  207 +%posttrans
202 208 /usr/bin/update-desktop-database
203 209  
204   -%postun branding
  210 +%postun
205 211 /usr/bin/update-desktop-database
206 212  
207 213 %changelog
... ...