packages: udisks-glue/udisks-glue.spec (NEW), udisks-glue/makefile.patch (N...

uzsolt uzsolt at pld-linux.org
Fri Oct 22 09:28:26 CEST 2010


Author: uzsolt                       Date: Fri Oct 22 07:28:26 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/udisks-glue:
   udisks-glue.spec (NONE -> 1.1)  (NEW), makefile.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/udisks-glue/udisks-glue.spec
diff -u /dev/null packages/udisks-glue/udisks-glue.spec:1.1
--- /dev/null	Fri Oct 22 09:28:26 2010
+++ packages/udisks-glue/udisks-glue.spec	Fri Oct 22 09:28:21 2010
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+Summary:	udisks-glue is a tool that can associate udisks events to user-defined actions
+Name:		udisks-glue
+Version:	1.1.1
+Release:	0.1
+License:	distributable (with modifications properly marked if any)
+Group:		Applications
+Source0:	http://carme.pld-linux.org/~uzsolt/sources/%{name}-%{version}.tar.xz
+# Source0-md5:	48600ae617938db28377bcbcd4998e36
+Patch0:		makefile.patch
+URL:		http://github.com/fernandotcl/udisks-glue
+BuildRequires:	libconfuse-devel
+BuildRequires:	pkg-config
+BuildRequires:	udev-glib-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+udisks-glue is a tool that can associate udisks events to user-defined
+actions. Udisks-glue should eventually offer the most useful features
+found in the aforementioned projects. As of now, however, only the
+most basic functionality is available (mounting and unmounting
+removable media).
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	MYCFLAGS="%{rpmcflags}" \
+	MYLDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install man/udisks-glue.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README LICENSE
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/udisks-glue.1*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/10/22 07:28:21  uzsolt
+- initial
+
+Revision 1.7  2008/08/27 20:47:03  qboosh
+- tab
+
+Revision 1.6  2007/07/01 14:38:10  spider
+- added gpl3
+
+Revision 1.5  2007/02/12 22:09:17  glen
+- tabs in preamble
+
+Revision 1.4  2007/02/12 01:06:34  baggins
+- converted to UTF-8
+
+Revision 1.3  2006/12/26 22:35:56  qboosh
+- killed spaces at eol
+
+Revision 1.2  2006/03/09 11:16:26  qboosh
+- tabs
+
+Revision 1.1  2006/03/05 09:12:27  spider
+- for simple programs, which needs to work only, configure, make, make install

================================================================
Index: packages/udisks-glue/makefile.patch
diff -u /dev/null packages/udisks-glue/makefile.patch:1.1
--- /dev/null	Fri Oct 22 09:28:26 2010
+++ packages/udisks-glue/makefile.patch	Fri Oct 22 09:28:21 2010
@@ -0,0 +1,34 @@
+--- udisks-glue-1.1.1-orig/Makefile	2010-10-22 09:12:46.916937704 +0200
++++ udisks-glue-1.1.1/Makefile	2010-10-22 09:21:49.193306433 +0200
+@@ -1,4 +1,4 @@
+-VERSION=$(shell git describe --tags --abbrev=0)
++VERSION=1.1.1
+ 
+ INSTALL=install
+ PREFIX=/usr
+@@ -18,23 +18,22 @@
+ CFLAGS+=$(shell pkg-config --cflags dbus-glib-1)
+ CFLAGS+=$(shell pkg-config --cflags glib-2.0)
+ CFLAGS+=$(shell pkg-config --cflags libconfuse)
++CFLAGS+=$(MYCFLAGS)
+ LDFLAGS+=$(shell pkg-config --libs dbus-glib-1)
+ LDFLAGS+=$(shell pkg-config --libs glib-2.0)
+ LDFLAGS+=$(shell pkg-config --libs libconfuse)
++LDFLAGS+=$(MYLDFLAGS)
+ 
+ .PHONY: all install clean distclean
+ all: $(BIN)
+ 
+ $(BIN): $(OBJS)
+-	@echo "LD $<" && \
+ 	$(CC) $(LDFLAGS) -o $(BIN) $(OBJS)
+ 
+ src/%.o: src/%.c $(HEADERS)
+-	@echo "CC $<" && \
+ 	$(CC) $(CFLAGS) -c -o $@ $<
+ 
+ $(BIN).1: man/$(BIN).1.roff
+-	@echo "NROFF $<" && \
+ 	nroff -t man $< >$(BIN).1
+ 
+ install: all
================================================================


More information about the pld-cvs-commit mailing list