Commit e1dbc2988ed86d49534008adf39490ebadbc06d0
1 parent
3aa3f160
Exists in
master
and in
5 other branches
Atualizando empacotamento, incluindo rpm com a extensão python.
Showing
4 changed files
with
37 additions
and
5 deletions
Show diff stats
.gitignore
po/pt_BR.po
| ... | ... | @@ -5,7 +5,7 @@ msgid "" |
| 5 | 5 | msgstr "" |
| 6 | 6 | "Project-Id-Version: pw3270 5.0\n" |
| 7 | 7 | "Report-Msgid-Bugs-To: \n" |
| 8 | -"POT-Creation-Date: 2015-10-30 18:26-0200\n" | |
| 8 | +"POT-Creation-Date: 2015-11-02 10:14-0200\n" | |
| 9 | 9 | "PO-Revision-Date: 2014-02-17 08:05-0300\n" |
| 10 | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
| 11 | 11 | "Language-Team: Portugues <>\n" | ... | ... |
pw3270.spec.in
| ... | ... | @@ -35,6 +35,7 @@ |
| 35 | 35 | %define _distro Linux |
| 36 | 36 | %define _redhat %(test -e /etc/redhat-release && echo 1 || echo 0) |
| 37 | 37 | %define _php %(which php-config 2> /dev/null > /dev/null && echo 1 || echo 0) |
| 38 | +%define _python %(which python-config 2> /dev/null > /dev/null && echo 1 || echo 0) | |
| 38 | 39 | %define _bldreq gtk3-devel libopenssl-devel |
| 39 | 40 | %define _java 1 |
| 40 | 41 | |
| ... | ... | @@ -112,6 +113,10 @@ BuildRequires: php-devel |
| 112 | 113 | BuildRequires: java-devel |
| 113 | 114 | %endif |
| 114 | 115 | |
| 116 | +%if 0%{?_python} | |
| 117 | +BuildRequires: python-devel | |
| 118 | +%endif | |
| 119 | + | |
| 115 | 120 | BuildRequires: rsvg-view |
| 116 | 121 | |
| 117 | 122 | %description |
| ... | ... | @@ -202,6 +207,22 @@ Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ |
| 202 | 207 | |
| 203 | 208 | %endif |
| 204 | 209 | |
| 210 | +%if 0%{?_python} | |
| 211 | + | |
| 212 | +%package -n python-tn3270 | |
| 213 | +Summary: Python Extension Module implementing tn3270 protocol | |
| 214 | +Group: Development/Libraries/PHP | |
| 215 | +Requires: lib3270 = @PACKAGE_VERSION@ | |
| 216 | + | |
| 217 | +%description -n python-tn3270 | |
| 218 | +This is an extension for acessing 3270 hosts directly | |
| 219 | +from python apps. | |
| 220 | + | |
| 221 | +Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 222 | + | |
| 223 | +%endif | |
| 224 | + | |
| 225 | + | |
| 205 | 226 | %if 0%{?_java} |
| 206 | 227 | |
| 207 | 228 | %package java |
| ... | ... | @@ -266,7 +287,8 @@ export JAVA_HOME=%{java_home} |
| 266 | 287 | --enable-pic \ |
| 267 | 288 | --with-jnidir="%{_jnidir}" \ |
| 268 | 289 | --with-jvmjardir="%{_jvmjardir}" \ |
| 269 | - --with-javadocdir="%{_javadocdir}" | |
| 290 | + --with-javadocdir="%{_javadocdir}" \ | |
| 291 | + --with-rexxlibdir="%{_rexxlibdir}" | |
| 270 | 292 | |
| 271 | 293 | |
| 272 | 294 | %build |
| ... | ... | @@ -299,8 +321,8 @@ rm -rf $RPM_BUILD_ROOT |
| 299 | 321 | |
| 300 | 322 | %{_datadir}/@PACKAGE_NAME@/colors.conf |
| 301 | 323 | %{_datadir}/@PACKAGE_NAME@/ui/00default.xml |
| 302 | -%{_datadir}/pw3270/ui/10functions.xml | |
| 303 | -%{_datadir}/pw3270/ui/10keypad.xml | |
| 324 | +%{_datadir}/@PACKAGE_NAME@/ui/10functions.xml | |
| 325 | +%{_datadir}/@PACKAGE_NAME@/ui/10keypad.xml | |
| 304 | 326 | %{_datadir}/@PACKAGE_NAME@/@PACKAGE_NAME@.png |
| 305 | 327 | %{_datadir}/@PACKAGE_NAME@/@PACKAGE_NAME@-logo.png |
| 306 | 328 | |
| ... | ... | @@ -357,6 +379,13 @@ rm -rf $RPM_BUILD_ROOT |
| 357 | 379 | %{_libdir}/php%{phpmajor}/extensions/tn3270.so |
| 358 | 380 | %endif |
| 359 | 381 | |
| 382 | +%if 0%{?_php} | |
| 383 | +%files -n python-tn3270 | |
| 384 | +%defattr(-,root,root) | |
| 385 | +%{_libdir}/python/site-packages/py3270.so | |
| 386 | +%endif | |
| 387 | + | |
| 388 | + | |
| 360 | 389 | %if 0%{?_java} |
| 361 | 390 | %files java |
| 362 | 391 | %defattr(-,root,root) | ... | ... |
src/python/Makefile.in
| ... | ... | @@ -109,7 +109,8 @@ run: $(BINDBG)/py3270@DLLEXT@ |
| 109 | 109 | #---[ Misc targets ]----------------------------------------------------------- |
| 110 | 110 | |
| 111 | 111 | install: $(BINRLS)/py3270@DLLEXT@ |
| 112 | - | |
| 112 | + @$(MKDIR) $(DESTDIR)/$(libdir)/python/site-packages | |
| 113 | + @$(INSTALL_PROGRAM) $(BINRLS)/py3270@DLLEXT@ $(DESTDIR)/$(libdir)/python/site-packages/py3270@DLLEXT@ | |
| 113 | 114 | |
| 114 | 115 | cleanDebug: clean |
| 115 | 116 | ... | ... |