forked from arduino/RXTX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rxtx.spec
47 lines (39 loc) · 1.3 KB
/
rxtx.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Summary: RXTX
Name: rxtx
Version: 2.1
Release: 7pre17
License: LGPL
Group: Development/Libraries
Source: rxtx-%{PACKAGE_VERSION}-%{PACKAGE_RELEASE}.tar.gz
URL: www.rxtx.org
Buildroot: /var/tmp/rxtx-root
%description
rxtx is an full implementation of java commapi which aims to support RS232
IEEE 1284, RS485, I2C and RawIO. This is a developers release.
%prep
%setup -q -n rxtx-%{version}-%{release}
%build
export THREADS_FLAG=native
./autogen.sh
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure --prefix=/usr
pwd
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT$JAVA_HOME/jre/lib/ext $RPM_BUILD_ROOT$JAVA_HOME/jre/lib/i386
make RXTX_PATH=$RPM_BUILD_ROOT$JAVA_HOME/jre/lib/i386/ JHOME=$RPM_BUILD_ROOT$JAVA_HOME/jre/lib/ext install
echo "Driver=gnu.io.RXTXCommDriver" > $RPM_BUILD_ROOT$JAVA_HOME/jre/lib/ext/gnu.io.rxtx.properties
find $RPM_BUILD_ROOT/usr -xtype f -print | \
sed "s@^$RPM_BUILD_ROOT@@g" > INSTALLED_FILES
if [ "$(cat INSTALLED_FILES)X" = "X" ] ; then
echo "No files!"
exit -1
fi
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc AUTHORS ChangeLog README RMISecurityManager.html COPYING INSTALL PORTING TODO
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Sun Mar 21 2004 Willem Riede <[email protected]>
- adjust spec file to support rpmbuild by ordinary user in Fedora context.