Commit eadb71f2f7b95c3756c22c088eff01319979abc2
1 parent
7453e448
Exists in
master
Incluindo SPEC para empacotamento.
Showing
2 changed files
with
81 additions
and
1 deletions
Show diff stats
.gitignore
| @@ -0,0 +1,75 @@ | @@ -0,0 +1,75 @@ | ||
| 1 | +Summary: PW3270 D-Bus service | ||
| 2 | +Name: pw3270d | ||
| 3 | +Version: 5.1 | ||
| 4 | +Release: 0 | ||
| 5 | +License: GPL-2.0 | ||
| 6 | +Source: %{name}-%{version}.tar.bz2 | ||
| 7 | +URL: https://softwarepublico.gov.br/gitlab/pw3270/pw3270d | ||
| 8 | +Group: System | ||
| 9 | + | ||
| 10 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
| 11 | + | ||
| 12 | +BuildRequires: autoconf >= 2.61 | ||
| 13 | +BuildRequires: automake | ||
| 14 | +BuildRequires: binutils | ||
| 15 | +BuildRequires: coreutils | ||
| 16 | +BuildRequires: gcc | ||
| 17 | +BuildRequires: m4 | ||
| 18 | +BuildRequires: pkgconfig | ||
| 19 | +BuildRequires: pkgconfig(lib3270) >= 5.1 | ||
| 20 | +BuildRequires: pkgconfig(glib-2.0) | ||
| 21 | +BuildRequires: pkgconfig(dbus-1) | ||
| 22 | +BuildRequires: pkgconfig(dbus-glib-1) | ||
| 23 | +BuildRequires: fdupes | ||
| 24 | +BuildRequires: systemd-devel | ||
| 25 | + | ||
| 26 | +Requires: dbus-1 | ||
| 27 | + | ||
| 28 | +%description | ||
| 29 | + | ||
| 30 | +Non GUI D-Bus service for screen scraping scripts using pw3270 modules. | ||
| 31 | + | ||
| 32 | +%prep | ||
| 33 | + | ||
| 34 | +%setup | ||
| 35 | + | ||
| 36 | +export CFLAGS="$RPM_OPT_FLAGS" | ||
| 37 | +export CXXFLAGS="$RPM_OPT_FLAGS" | ||
| 38 | +export FFLAGS="$RPM_OPT_FLAGS" | ||
| 39 | + | ||
| 40 | +aclocal | ||
| 41 | +autoconf | ||
| 42 | +%configure | ||
| 43 | + | ||
| 44 | +%build | ||
| 45 | +make clean | ||
| 46 | +make Release | ||
| 47 | + | ||
| 48 | +%install | ||
| 49 | +rm -rf $RPM_BUILD_ROOT | ||
| 50 | + | ||
| 51 | +%makeinstall | ||
| 52 | + | ||
| 53 | +%fdupes $RPM_BUILD_ROOT | ||
| 54 | + | ||
| 55 | +%clean | ||
| 56 | +rm -rf $RPM_BUILD_ROOT | ||
| 57 | + | ||
| 58 | +%files | ||
| 59 | +%defattr(-,root,root) | ||
| 60 | +%{_sbindir}/pw3270d | ||
| 61 | +%{_unitdir}/pw3270d.service | ||
| 62 | +/etc/dbus-1/system.d/pw3270d.conf | ||
| 63 | + | ||
| 64 | +%post | ||
| 65 | +killall -HUP dbus-daemon | ||
| 66 | +systemctl daemon-reload | ||
| 67 | +exit 0 | ||
| 68 | + | ||
| 69 | +%postun | ||
| 70 | +killall -HUP dbus-daemon | ||
| 71 | +systemctl daemon-reload | ||
| 72 | +exit 0 | ||
| 73 | + | ||
| 74 | +%changelog | ||
| 75 | + |