rpms/xdotool/devel xdotool-makefile.patch, NONE, 1.1 .cvsignore, 1.5, 1.6 sources, 1.5, 1.6 xdotool.spec, 1.9, 1.10

Sven Lankes slankes at fedoraproject.org
Sat Feb 6 10:24:02 UTC 2010


Author: slankes

Update of /cvs/pkgs/rpms/xdotool/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9805

Modified Files:
	.cvsignore sources xdotool.spec 
Added Files:
	xdotool-makefile.patch 
Log Message:
* Tue Feb 05 2010 Sven Lankes <sven at lank.es> - 0.20100118.2605-1
- New upstream release
- remove BuildRoot from spec
- add subpackages for libxdo
- ship manpage
- bump Epoch as upstream changed the versioning
- use make install (with a makefile-patch) instead of manual install in spec


xdotool-makefile.patch:
 Makefile |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- NEW FILE xdotool-makefile.patch ---
--- Makefile.orig	2010-02-06 02:17:45.428793838 +0100
+++ Makefile	2010-02-06 02:19:28.420793962 +0100
@@ -29,17 +29,20 @@
 install: installlib installprog installman installheader
 
 installprog: xdotool
+	[ -d $(INSTALLBIN) ] || mkdir -p $(INSTALLBIN)
 	install -m 755 xdotool $(INSTALLBIN)/
 
 installlib: libxdo.so
+	[ -d $(INSTALLLIB) ] || mkdir -p $(INSTALLLIB)
 	install libxdo.so $(INSTALLLIB)/libxdo.so.$(MAJOR)
 	ln -sf libxdo.so.$(MAJOR) $(INSTALLLIB)/libxdo.so
 
 installheader: xdo.h
+	[ -d $(INSTALLINCLUDE) ] || mkdir -p $(INSTALLINCLUDE)
 	install xdo.h $(INSTALLINCLUDE)/xdo.h
 
 installman: xdotool.1
-	[ -d $(INSTALLMAN) ] || mkdir $(INSTALLMAN)
+	[ -d $(INSTALLMAN) ] || mkdir -p $(INSTALLMAN)
 	[ -d $(INSTALLMAN)/man1 ] || mkdir $(INSTALLMAN)/man1
 	install -m 644 xdotool.1 $(INSTALLMAN)/man1/
 


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/xdotool/devel/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- .cvsignore	17 Sep 2009 18:07:42 -0000	1.5
+++ .cvsignore	6 Feb 2010 10:24:02 -0000	1.6
@@ -1 +1 @@
-xdotool-20090815.tar.gz
+xdotool-0.20100118.2605.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/xdotool/devel/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources	17 Sep 2009 18:07:42 -0000	1.5
+++ sources	6 Feb 2010 10:24:02 -0000	1.6
@@ -1 +1 @@
-32b1127c0c24f5b3d0a1a1c09b3d44f8  xdotool-20090815.tar.gz
+9e0afbe66771dc0f90eb778728a4fbc9  xdotool-0.20100118.2605.tar.gz


Index: xdotool.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xdotool/devel/xdotool.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- xdotool.spec	17 Sep 2009 18:07:42 -0000	1.9
+++ xdotool.spec	6 Feb 2010 10:24:02 -0000	1.10
@@ -1,22 +1,41 @@
 Name:           xdotool
-Version:        20090815
+Version:        0.20100118.2605
+Epoch:          1
 Release:        1%{?dist}
 Summary:        Fake keyboard/mouse input
-
 Group:          User Interface/X
 License:        BSD
 URL:            http://www.semicomplete.com/projects/xdotool/
-Source0:        http://www.semicomplete.com/files/xdotool/%{name}-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        http://semicomplete.googlecode.com/files/%{name}-%{version}.tar.gz
+# Create directories if they don't exist
+# http://code.google.com/p/semicomplete/issues/detail?id=17
+Patch0:         xdotool-makefile.patch
 
 BuildRequires:  libXtst-devel, libX11-devel
 
 %description
-This tool lets you programatically (or manually) simulate keyboard input
-and mouse activity, move and resize windows, etc.
+This tool lets you programmatically (or manually) simulate keyboard input
+and mouse activity, move and re-size windows, etc.
+
+%package -n libxdo
+Group: System Environment/Libraries
+Summary: Keyboard input simulation library
+                                                                                                                                                                                  
+%description -n libxdo
+This library contains functions to simulate keyboard and mouse input
+
+%package -n libxdo-devel
+Summary:        Development files for libxdo
+Group:          Development/Libraries
+Requires:       libxdo = %{version}-%{release}
+
+%description -n libxdo-devel
+The libxdo-devel package contains libraries and header files for
+developing applications that use libxdo
 
 %prep
 %setup -q
+%patch0
 
 %build
 export WARNFLAGS="$RPM_OPT_FLAGS"
@@ -25,8 +44,7 @@ make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-#manual install
-install -D -m 0755 xdotool $RPM_BUILD_ROOT%{_bindir}/xdotool
+make PREFIX=$RPM_BUILD_ROOT/%{_prefix} INSTALLMAN=$RPM_BUILD_ROOT%{_mandir} INSTALLLIB=$RPM_BUILD_ROOT%{_libdir} install
 
 #fix permissions
 chmod 0644 examples/ffsp.sh
@@ -34,15 +52,35 @@ chmod 0644 examples/ffsp.sh
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post -n libxdo -p /sbin/ldconfig
 
-%files
+%postun -n libxdo -p /sbin/ldconfig
+
+%files -n libxdo
 %defattr(-,root,root,-)
 %doc CHANGELIST COPYRIGHT README
-%doc examples
-%{_bindir}/*
+%{_libdir}/*.so.*
+
+%files -n libxdo-devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/*.so
 
+%files
+%defattr(-,root,root,-)
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
+%doc examples
 
 %changelog
+* Tue Feb 05 2010 Sven Lankes <sven at lank.es> - 0.20100118.2605-1
+- New upstream release
+- remove BuildRoot from spec
+- add subpackages for libxdo
+- ship manpage
+- bump Epoch as upstream changed the versioning
+- use make install (with a makefile-patch) instead of manual install in spec
+
 * Thu Sep 17 2009 Sven Lankes <sven at lank.es> - 20090815-1
 - New upstream release (fixes #521765)
 



More information about the scm-commits mailing list