Commit 52b7208b97abfdf8465c7e4348947311c11f071e
1 parent
732e62d7
Exists in
master
Adding windows package control files.
Showing
2 changed files
with
274 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
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 __strip %{_mingw32_strip} | ||
20 | +%define __objdump %{_mingw32_objdump} | ||
21 | +%define _use_internal_dependency_generator 0 | ||
22 | +%define __find_requires %{_mingw32_findrequires} | ||
23 | +%define __find_provides %{_mingw32_findprovides} | ||
24 | +%define __os_install_post %{_mingw32_debug_install_post} \ | ||
25 | + %{_mingw32_install_post} | ||
26 | + | ||
27 | +#---[ Package header ]------------------------------------------------------------------------------------------------ | ||
28 | + | ||
29 | +Summary: A .NET library for TN3270 | ||
30 | +Name: mingw32-mono-tn3270 | ||
31 | +Version: 5.2 | ||
32 | +Release: 0 | ||
33 | +License: LGPL-3.0 | ||
34 | +Source: mono-tn3270-%{version}.tar.xz | ||
35 | +URL: https://github.com/PerryWerneck/mono-tn3270 | ||
36 | +Group: Development/Languages/Other | ||
37 | + | ||
38 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
39 | + | ||
40 | +BuildRequires: mono-devel | ||
41 | +BuildRequires: autoconf >= 2.61 | ||
42 | +BuildRequires: automake | ||
43 | +BuildRequires: binutils | ||
44 | +BuildRequires: coreutils | ||
45 | +BuildRequires: fdupes | ||
46 | + | ||
47 | +BuildRequires: mingw32-cross-binutils | ||
48 | +BuildRequires: mingw32-cross-gcc | ||
49 | +BuildRequires: mingw32-cross-gcc-c++ | ||
50 | +BuildRequires: mingw32-cross-pkg-config | ||
51 | +BuildRequires: mingw32-filesystem | ||
52 | + | ||
53 | +BuildRequires: mingw32(lib:iconv) | ||
54 | +BuildRequires: mingw32(lib:intl) | ||
55 | + | ||
56 | +BuildRequires: mingw32(pkg:ipc3270) | ||
57 | + | ||
58 | + | ||
59 | +%description | ||
60 | +A .NET library for TN3270 | ||
61 | + | ||
62 | +#---[ Library ]------------------------------------------------------------------------------------------------------- | ||
63 | + | ||
64 | +%define _product %(i686-w64-mingw32-pkg-config --variable=product_name lib3270) | ||
65 | +%define MAJOR_VERSION %(echo %{version} | cut -d. -f1) | ||
66 | +%define MINOR_VERSION %(echo %{version} | cut -d. -f2) | ||
67 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | ||
68 | + | ||
69 | +%package -n %{name}-%{_libvrs} | ||
70 | +Summary: A .NET library for TN3270 | ||
71 | +Group: Development/Languages/Other | ||
72 | + | ||
73 | +%description -n %{name}-%{_libvrs} | ||
74 | +A .NET library for TN3270 | ||
75 | + | ||
76 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
77 | + | ||
78 | +#---[ Development package ]------------------------------------------------------------------------------------------- | ||
79 | + | ||
80 | +%package devel | ||
81 | +Summary: Devel files for TN3270 .NET library | ||
82 | + | ||
83 | +%description devel | ||
84 | +Development files for %{name}. | ||
85 | + | ||
86 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
87 | + | ||
88 | +%prep | ||
89 | + | ||
90 | +%setup -n mono-tn3270-%{version} | ||
91 | + | ||
92 | +NOCONFIGURE=1 \ | ||
93 | + ./autogen.sh | ||
94 | + | ||
95 | +%{_mingw32_configure} | ||
96 | + | ||
97 | +%build | ||
98 | +make all %{?_smp_mflags} | ||
99 | + | ||
100 | +%{_mingw32_strip} \ | ||
101 | + --strip-all \ | ||
102 | + .bin/Release/*.dll | ||
103 | + | ||
104 | +%install | ||
105 | + | ||
106 | +#%make_install | ||
107 | +make DESTDIR=%{buildroot} install-native | ||
108 | + | ||
109 | +%fdupes %{buildroot}/%{_prefix} | ||
110 | + | ||
111 | +%files -n %{name}-%{_libvrs} | ||
112 | +%defattr(-,root,root) | ||
113 | + | ||
114 | +# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros | ||
115 | +%if 0%{?sle_version} > 120200 | ||
116 | +%doc AUTHORS README.md | ||
117 | +%license LICENSE | ||
118 | +%else | ||
119 | +%doc AUTHORS README.md LICENSE | ||
120 | +%endif | ||
121 | + | ||
122 | +%{_mingw32_libdir}/*.dll | ||
123 | +%{_mingw32_libdir}/*.dll.%{MAJOR_VERSION} | ||
124 | +%{_mingw32_libdir}/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
125 | + | ||
126 | +#/usr/lib/mono/gac | ||
127 | +#/usr/share/gapi-2.0 | ||
128 | + | ||
129 | +#/usr/lib/mono/* | ||
130 | + | ||
131 | +%files devel | ||
132 | +%defattr(-,root,root) | ||
133 | +#%{_mingw32_libdir}/pkgconfig/*.pc | ||
134 | + | ||
135 | +%changelog | ||
136 | + | ||
137 | + |
@@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
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 __strip %{_mingw64_strip} | ||
20 | +%define __objdump %{_mingw64_objdump} | ||
21 | +%define _use_internal_dependency_generator 0 | ||
22 | +%define __find_requires %{_mingw64_findrequires} | ||
23 | +%define __find_provides %{_mingw64_findprovides} | ||
24 | +%define __os_install_post %{_mingw64_debug_install_post} \ | ||
25 | + %{_mingw64_install_post} | ||
26 | + | ||
27 | +#---[ Package header ]------------------------------------------------------------------------------------------------ | ||
28 | + | ||
29 | +Summary: A .NET library for TN3270 | ||
30 | +Name: mingw64-mono-tn3270 | ||
31 | +Version: 5.2 | ||
32 | +Release: 0 | ||
33 | +License: LGPL-3.0 | ||
34 | +Source: mono-tn3270-%{version}.tar.xz | ||
35 | +URL: https://github.com/PerryWerneck/mono-tn3270 | ||
36 | +Group: Development/Languages/Other | ||
37 | + | ||
38 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
39 | + | ||
40 | +BuildRequires: mono-devel | ||
41 | +BuildRequires: autoconf >= 2.61 | ||
42 | +BuildRequires: automake | ||
43 | +BuildRequires: binutils | ||
44 | +BuildRequires: coreutils | ||
45 | +BuildRequires: fdupes | ||
46 | + | ||
47 | +BuildRequires: mingw64-cross-binutils | ||
48 | +BuildRequires: mingw64-cross-gcc | ||
49 | +BuildRequires: mingw64-cross-gcc-c++ | ||
50 | +BuildRequires: mingw64-cross-pkg-config | ||
51 | +BuildRequires: mingw64-filesystem | ||
52 | + | ||
53 | +BuildRequires: mingw64(lib:iconv) | ||
54 | +BuildRequires: mingw64(lib:intl) | ||
55 | + | ||
56 | +BuildRequires: mingw64(pkg:ipc3270) | ||
57 | + | ||
58 | + | ||
59 | +%description | ||
60 | +A .NET library for TN3270 | ||
61 | + | ||
62 | +#---[ Library ]------------------------------------------------------------------------------------------------------- | ||
63 | + | ||
64 | +%define _product %(x86_64-w64-mingw32-pkg-config --variable=product_name lib3270) | ||
65 | +%define MAJOR_VERSION %(echo %{version} | cut -d. -f1) | ||
66 | +%define MINOR_VERSION %(echo %{version} | cut -d. -f2) | ||
67 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | ||
68 | + | ||
69 | +%package -n %{name}-%{_libvrs} | ||
70 | +Summary: A .NET library for TN3270 | ||
71 | +Group: Development/Languages/Other | ||
72 | + | ||
73 | +%description -n %{name}-%{_libvrs} | ||
74 | +A .NET library for TN3270 | ||
75 | + | ||
76 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
77 | + | ||
78 | +#---[ Development package ]------------------------------------------------------------------------------------------- | ||
79 | + | ||
80 | +%package devel | ||
81 | +Summary: Devel files for TN3270 .NET library | ||
82 | + | ||
83 | +%description devel | ||
84 | +Development files for %{name}. | ||
85 | + | ||
86 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
87 | + | ||
88 | +%prep | ||
89 | + | ||
90 | +%setup -n mono-tn3270-%{version} | ||
91 | + | ||
92 | +NOCONFIGURE=1 \ | ||
93 | + ./autogen.sh | ||
94 | + | ||
95 | +%{_mingw64_configure} | ||
96 | + | ||
97 | +%build | ||
98 | +make all %{?_smp_mflags} | ||
99 | + | ||
100 | +%{_mingw64_strip} \ | ||
101 | + --strip-all \ | ||
102 | + .bin/Release/*.dll | ||
103 | + | ||
104 | +%install | ||
105 | + | ||
106 | +#%make_install | ||
107 | +make DESTDIR=%{buildroot} install-native | ||
108 | + | ||
109 | +%fdupes %{buildroot}/%{_prefix} | ||
110 | + | ||
111 | +%files -n %{name}-%{_libvrs} | ||
112 | +%defattr(-,root,root) | ||
113 | + | ||
114 | +# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros | ||
115 | +%if 0%{?sle_version} > 120200 | ||
116 | +%doc AUTHORS README.md | ||
117 | +%license LICENSE | ||
118 | +%else | ||
119 | +%doc AUTHORS README.md LICENSE | ||
120 | +%endif | ||
121 | + | ||
122 | +%{_mingw64_libdir}/*.dll | ||
123 | +%{_mingw64_libdir}/*.dll.%{MAJOR_VERSION} | ||
124 | +%{_mingw64_libdir}/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
125 | + | ||
126 | +#/usr/lib/mono/gac | ||
127 | +#/usr/share/gapi-2.0 | ||
128 | + | ||
129 | +#/usr/lib/mono/* | ||
130 | + | ||
131 | +%files devel | ||
132 | +%defattr(-,root,root) | ||
133 | +#%{_mingw64_libdir}/pkgconfig/*.pc | ||
134 | + | ||
135 | +%changelog | ||
136 | + | ||
137 | + |