Commit 732e62d75f720bcbae8dde2f541ecbdad0b43967
1 parent
c74a1834
Exists in
master
Updating rpm control files.
Showing
3 changed files
with
124 additions
and
115 deletions
Show diff stats
rpm/_service
@@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
2 | 2 | ||
3 | <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> | 3 | <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> |
4 | <service name="tar_scm"> | 4 | <service name="tar_scm"> |
5 | - <param name="changesgenerate">enable</param> | ||
6 | - <param name="changesauthor">perry.werneck@gmail.com</param> | 5 | + <param name="changesgenerate">enable</param> |
6 | + <param name="changesauthor">perry.werneck@gmail.com</param> | ||
7 | <param name="versionformat">@PARENT_TAG@</param> | 7 | <param name="versionformat">@PARENT_TAG@</param> |
8 | - <param name="url">https://github.com/PerryWerneck/lib3270-mono-bindings.git</param> | 8 | + <param name="url">https://github.com/PerryWerneck/mono-tn3270.git</param> |
9 | <param name="scm">git</param> | 9 | <param name="scm">git</param> |
10 | </service> | 10 | </service> |
11 | 11 | ||
@@ -15,6 +15,7 @@ | @@ -15,6 +15,7 @@ | ||
15 | <param name="files">*/rpm/*.spec</param> | 15 | <param name="files">*/rpm/*.spec</param> |
16 | </service --> | 16 | </service --> |
17 | 17 | ||
18 | + <!-- | ||
18 | <service name="extract_file"> | 19 | <service name="extract_file"> |
19 | <param name="archive">*.tar</param> | 20 | <param name="archive">*.tar</param> |
20 | <param name="files">*/debian/*.dsc</param> | 21 | <param name="files">*/debian/*.dsc</param> |
@@ -44,11 +45,7 @@ | @@ -44,11 +45,7 @@ | ||
44 | <param name="outfilename">debian.compat</param> | 45 | <param name="outfilename">debian.compat</param> |
45 | </service> | 46 | </service> |
46 | 47 | ||
47 | - <!-- service name="extract_file"> | ||
48 | - <param name="archive">*.tar</param> | ||
49 | - <param name="files">*/debian/shlibs</param> | ||
50 | - <param name="outfilename">debian.shlibs</param> | ||
51 | - </service --> | 48 | + --> |
52 | 49 | ||
53 | <!-- service name="extract_file"> | 50 | <!-- service name="extract_file"> |
54 | <param name="archive">*.tar</param> | 51 | <param name="archive">*.tar</param> |
rpm/lib3270-mono-bindings.spec
@@ -1,107 +0,0 @@ | @@ -1,107 +0,0 @@ | ||
1 | -# | ||
2 | -# spec file for package pw3270-sharp | ||
3 | -# | ||
4 | -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. | ||
5 | -# Copyright (C) <2008> <Banco do Brasil S.A.> | ||
6 | -# | ||
7 | -# All modifications and additions to the file contributed by third parties | ||
8 | -# remain the property of their copyright owners, unless otherwise agreed | ||
9 | -# upon. The license for this file, and modifications and additions to the | ||
10 | -# file, is the same license as for the pristine package itself (unless the | ||
11 | -# license for the pristine package is not an Open Source License, in which | ||
12 | -# case the license is the MIT License). An "Open Source License" is a | ||
13 | -# license that conforms to the Open Source Definition (Version 1.9) | ||
14 | -# published by the Open Source Initiative. | ||
15 | - | ||
16 | -# Please submit bugfixes or comments via http://bugs.opensuse.org/ | ||
17 | -# | ||
18 | - | ||
19 | -%define MAJOR_VERSION 5 | ||
20 | -%define MINOR_VERSION 2 | ||
21 | - | ||
22 | -%define libname tn3270-sharp | ||
23 | - | ||
24 | -Summary: Mono binding for pw3270/lib3270 | ||
25 | -Name: lib3270-mono-bindings | ||
26 | -Version: 5.2 | ||
27 | -Release: 0 | ||
28 | -License: LGPL-3.0 | ||
29 | -Source: %{name}-%{version}.tar.xz | ||
30 | -URL: https://github.com/PerryWerneck/lib3270-mono-bindings.git | ||
31 | -Group: Development/Languages/Other | ||
32 | - | ||
33 | -BuildRoot: /var/tmp/%{name}-%{version} | ||
34 | - | ||
35 | -BuildRequires: mono-devel | ||
36 | -BuildRequires: autoconf >= 2.61 | ||
37 | -BuildRequires: automake | ||
38 | -BuildRequires: binutils | ||
39 | -BuildRequires: coreutils | ||
40 | -BuildRequires: gcc-c++ | ||
41 | -BuildRequires: m4 | ||
42 | -BuildRequires: pkgconfig | ||
43 | -BuildRequires: fdupes | ||
44 | -BuildRequires: pkgconfig(ipc3270) | ||
45 | - | ||
46 | -%description | ||
47 | - | ||
48 | -Mono bindings for tn3270 acesss using lib3270 or pw3270. | ||
49 | - | ||
50 | -%prep | ||
51 | - | ||
52 | -%setup | ||
53 | - | ||
54 | -export CFLAGS="$RPM_OPT_FLAGS" | ||
55 | -export CXXFLAGS="$RPM_OPT_FLAGS" | ||
56 | -export FFLAGS="$RPM_OPT_FLAGS" | ||
57 | - | ||
58 | -aclocal | ||
59 | -autoconf | ||
60 | -%configure | ||
61 | - | ||
62 | -%build | ||
63 | -%define debug_package %{nil} | ||
64 | - | ||
65 | -make clean | ||
66 | -make Release | ||
67 | - | ||
68 | -%install | ||
69 | -rm -rf $RPM_BUILD_ROOT | ||
70 | - | ||
71 | -%make_install | ||
72 | - | ||
73 | -%fdupes $RPM_BUILD_ROOT | ||
74 | - | ||
75 | -%clean | ||
76 | -rm -rf $RPM_BUILD_ROOT | ||
77 | - | ||
78 | -%files | ||
79 | -%defattr(-,root,root) | ||
80 | - | ||
81 | -%doc README.md LICENCA LICENSE AUTHORS | ||
82 | - | ||
83 | -/usr/lib/mono/gac/%{libname} | ||
84 | - | ||
85 | -%dir /usr/lib/mono/%{libname}-%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
86 | -/usr/lib/mono/%{libname}-%{MAJOR_VERSION}.%{MINOR_VERSION}/tn3270-sharp.dll | ||
87 | - | ||
88 | -%{_libdir}/lib3270-mono.so | ||
89 | -%{_libdir}/lib3270-mono.so.%{MAJOR_VERSION} | ||
90 | -%{_libdir}/lib3270-mono.so.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
91 | -%{_libdir}/pkgconfig/tn3270-sharp.pc | ||
92 | - | ||
93 | -%dir /usr/share/gapi-2.0 | ||
94 | -%dir /usr/share/gapi-2.0/%{libname} | ||
95 | -/usr/share/gapi-2.0/%{libname}/tn3270-sharp.xml | ||
96 | - | ||
97 | -%post | ||
98 | -/sbin/ldconfig | ||
99 | -exit 0 | ||
100 | - | ||
101 | -%postun | ||
102 | -/sbin/ldconfig | ||
103 | -exit 0 | ||
104 | - | ||
105 | -%changelog | ||
106 | - | ||
107 | - |
@@ -0,0 +1,119 @@ | @@ -0,0 +1,119 @@ | ||
1 | +# | ||
2 | +# spec file for package pw3270-sharp | ||
3 | +# | ||
4 | +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. | ||
5 | +# Copyright (C) <2008> <Banco do Brasil S.A.> | ||
6 | +# | ||
7 | +# All modifications and additions to the file contributed by third parties | ||
8 | +# remain the property of their copyright owners, unless otherwise agreed | ||
9 | +# upon. The license for this file, and modifications and additions to the | ||
10 | +# file, is the same license as for the pristine package itself (unless the | ||
11 | +# license for the pristine package is not an Open Source License, in which | ||
12 | +# case the license is the MIT License). An "Open Source License" is a | ||
13 | +# license that conforms to the Open Source Definition (Version 1.9) | ||
14 | +# published by the Open Source Initiative. | ||
15 | + | ||
16 | +# Please submit bugfixes or comments via http://bugs.opensuse.org/ | ||
17 | +# | ||
18 | + | ||
19 | +#---[ Package header ]------------------------------------------------------------------------------------------------ | ||
20 | + | ||
21 | +Summary: A .NET library for TN3270 | ||
22 | +Name: mono-tn3270 | ||
23 | +Version: 5.2 | ||
24 | +Release: 0 | ||
25 | +License: LGPL-3.0 | ||
26 | +Source: %{name}-%{version}.tar.xz | ||
27 | +URL: https://github.com/PerryWerneck/mono-tn3270 | ||
28 | +Group: Development/Languages/Other | ||
29 | + | ||
30 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
31 | + | ||
32 | +BuildRequires: mono-devel | ||
33 | +BuildRequires: autoconf >= 2.61 | ||
34 | +BuildRequires: automake | ||
35 | +BuildRequires: binutils | ||
36 | +BuildRequires: coreutils | ||
37 | +BuildRequires: gcc-c++ | ||
38 | +BuildRequires: m4 | ||
39 | +BuildRequires: pkgconfig | ||
40 | +BuildRequires: fdupes | ||
41 | +BuildRequires: pkgconfig(ipc3270) | ||
42 | +BuildRequires: gettext-devel | ||
43 | + | ||
44 | +%description | ||
45 | +A .NET library for TN3270 | ||
46 | + | ||
47 | +#---[ Library ]------------------------------------------------------------------------------------------------------- | ||
48 | + | ||
49 | +%define MAJOR_VERSION %(echo %{version} | cut -d. -f1) | ||
50 | +%define MINOR_VERSION %(echo %{version} | cut -d. -f2) | ||
51 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | ||
52 | + | ||
53 | +%package -n %{name}-%{_libvrs} | ||
54 | +Summary: A .NET library for TN3270 | ||
55 | +Group: Development/Languages/Other | ||
56 | + | ||
57 | +%description -n %{name}-%{_libvrs} | ||
58 | +A .NET library for TN3270 | ||
59 | + | ||
60 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
61 | + | ||
62 | +#---[ Development package ]------------------------------------------------------------------------------------------- | ||
63 | + | ||
64 | +%package devel | ||
65 | +Summary: Devel files for TN3270 .NET library | ||
66 | + | ||
67 | +%description devel | ||
68 | +Development files for %{name}. | ||
69 | + | ||
70 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
71 | + | ||
72 | +%prep | ||
73 | + | ||
74 | +%setup | ||
75 | + | ||
76 | +NOCONFIGURE=1 \ | ||
77 | + ./autogen.sh | ||
78 | + | ||
79 | +%configure | ||
80 | + | ||
81 | +%build | ||
82 | +make all %{?_smp_mflags} | ||
83 | + | ||
84 | +%install | ||
85 | + | ||
86 | +%make_install | ||
87 | +%fdupes %{buildroot}/%{_prefix} | ||
88 | + | ||
89 | +%files -n %{name}-%{_libvrs} | ||
90 | +%defattr(-,root,root) | ||
91 | + | ||
92 | +# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros | ||
93 | +%if 0%{?sle_version} > 120200 | ||
94 | +%doc AUTHORS README.md | ||
95 | +%license LICENSE | ||
96 | +%else | ||
97 | +%doc AUTHORS README.md LICENSE | ||
98 | +%endif | ||
99 | + | ||
100 | +%{_libdir}/*.so.%{MAJOR_VERSION} | ||
101 | +%{_libdir}/*.so.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
102 | + | ||
103 | +/usr/lib/mono/gac | ||
104 | +/usr/share/gapi-2.0 | ||
105 | + | ||
106 | +/usr/lib/mono/* | ||
107 | + | ||
108 | +%files devel | ||
109 | +%defattr(-,root,root) | ||
110 | +%{_libdir}/*.so | ||
111 | +%{_libdir}/pkgconfig/*.pc | ||
112 | + | ||
113 | +%post -p /sbin/ldconfig | ||
114 | + | ||
115 | +%postun -p /sbin/ldconfig | ||
116 | + | ||
117 | +%changelog | ||
118 | + | ||
119 | + |