| 1 | #define svn_url F:/rd/AOO/tools/UniClip
|
|---|
| 2 | %define svn_url https://svn.netlabs.org/repos/openoffice/trunk/tools/UniClip
|
|---|
| 3 | %define svn_rev 955
|
|---|
| 4 |
|
|---|
| 5 | %define kmk_dist out/os2.x86/release/dist
|
|---|
| 6 |
|
|---|
| 7 | Summary: UClip, enhanced OS/2 clipboard support
|
|---|
| 8 | Name: uclip
|
|---|
| 9 | Version: 0.3.0
|
|---|
| 10 | Release: 1%{?dist}
|
|---|
| 11 | License: unknown
|
|---|
| 12 | Group: Development/Libraries
|
|---|
| 13 | Source: %{name}-%{version}-r%{svn_rev}.zip
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | UClip is designed to allow OS/2 programs to exchange unicode text using the clipboard
|
|---|
| 18 | with other native programs or with odin-ized programs.
|
|---|
| 19 | It is compiled using Odin source code, so it shares the same clipboard formats recognized
|
|---|
| 20 | in win32 native programs.
|
|---|
| 21 | Note: UClip will not enable your existing OS/2 software, it will work only for programs
|
|---|
| 22 | specifically developed with it.
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | %package devel
|
|---|
| 26 | Summary: Header files developing apps which will use UClip
|
|---|
| 27 | Group: Development/Libraries
|
|---|
| 28 | Requires: %{name} = %{version}-%{release}
|
|---|
| 29 |
|
|---|
| 30 | %description devel
|
|---|
| 31 | Header files and a library of UClip functions, for developing apps
|
|---|
| 32 | which will use the library.
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | %debug_package
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 | %prep
|
|---|
| 39 | %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
|---|
| 40 | %setup -q
|
|---|
| 41 | %else
|
|---|
| 42 | %setup -n "%{name}-%{version}" -T -c
|
|---|
| 43 | svn export -r %{svn_rev} %{svn_url} . --force
|
|---|
| 44 | rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
|
|---|
| 45 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
|
|---|
| 46 | %endif
|
|---|
| 47 |
|
|---|
| 48 | %build
|
|---|
| 49 | export KCFLAGS="%{optflags}"
|
|---|
| 50 | export ODIN="E:/BuildBot/BUILD/Odin/trunk"
|
|---|
| 51 | kmk -C src ODIN="E:/BuildBot/BUILD/Odin/trunk"
|
|---|
| 52 |
|
|---|
| 53 | %install
|
|---|
| 54 | rm -rf %{buildroot}
|
|---|
| 55 |
|
|---|
| 56 | kmk -C src PATH_INS="%{buildroot}/@unixroot/usr" ODIN="E:/BuildBot/BUILD/Odin/trunk" install
|
|---|
| 57 |
|
|---|
| 58 | %clean
|
|---|
| 59 | rm -rf %{buildroot}
|
|---|
| 60 |
|
|---|
| 61 | %files
|
|---|
| 62 | %defattr(-,root,root)
|
|---|
| 63 | %{_libdir}/UClip.dll
|
|---|
| 64 | %doc License.txt ReadMe.txt
|
|---|
| 65 |
|
|---|
| 66 | %files devel
|
|---|
| 67 | %defattr(-,root,root)
|
|---|
| 68 | %{_libdir}/*.lib
|
|---|
| 69 | %{_includedir}/*
|
|---|
| 70 |
|
|---|
| 71 | %changelog
|
|---|
| 72 | * Thu Mar 17 2016 yd <yd@os2power.com> 0.3.0-1
|
|---|
| 73 | - r955, move to kmk build system.
|
|---|
| 74 | - r954, Update code to compile with gcc 4.9.2, revert to full c++ build.
|
|---|
| 75 | - r953, Add libwrap from current odin tree build.
|
|---|
| 76 | - r952, Tree cleanup.
|
|---|
| 77 | - First rpm build.
|
|---|