dwg2dxf.spec (prośba o odanie)

Michal Abramowicz ab_1 w abram.eu.org
Czw, 16 Cze 2005, 12:02:15 CEST


witam,

ponieważ potrzebowałem tego programu do 
konwertowania z dwg na dxf to pozwoliłem sobie zrobić speca
i patcha (thnx to agaran)

ktoś tm to doda :) moze sie komus przyda.
abram
ps: nie bardzo wiem do jakiej grupy to zaliczyc, wkońcu
pliki dxf to też grafika
-- 
Z punktu widzenia Rewolucji Światowej ludzie zasadniczo 
dzielą się na dwie kategorie: na tych, którym trzeba 
natychmiast poderżnąć gardło i na tych, którym narazie nie trzeba.
-------------- następna część ---------
Summary:	Command line converter for *.dwg files into *.dxf
Summary(pl):	Program konwertujący pliki z *.dwg do *.dxf
Name:		dwg2dxf
Version:	2.1
Release:	1
License:	GPL
Group:		Applications/Graphics
Source0:	http://nchc.dl.sourceforge.net/sourceforge/lx-viewer/%{name}-%{version}.tar.gz
# Source0-md5:	c1ba5f874d23746360cd73986830a249
Patch0:		%{name}-%{version}-shared-files.patch
URL:		http://sourceforge.net/projects/lx-viewer/
#BuildRequires:
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
A command line program to convert AutoCad drawing files (*.dwg) 
into Drawing Interchange Format (*.dxf) files.
%description -l pl
Konsolowy program konwertujący pliki AutoCad'a (*.dwf) do 
Drawing Interchange Format (*.dxf), potem taki plik *.dxf można
otworzyć za pomocą QCAD'a.

%prep
%setup -q
%patch0 -p1

%build
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -d $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}
install %{name}/adinit.dat $RPM_BUILD_ROOT/%{_datadir}/%{name}/
install %{name}/docs/en/index*.html $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/%{name}
%attr(644,root,root) %{_datadir}/%{name}/adinit.dat
%doc %{_defaultdocdir}/%{name}-%{version}/*.html

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
-------------- następna część ---------
diff -uNr dwg2dxf-2.1.orig/dwg2dxf/main.cpp dwg2dxf-2.1/dwg2dxf/main.cpp
--- dwg2dxf-2.1.orig/dwg2dxf/main.cpp	2002-08-18 00:49:37.000000000 +0200
+++ dwg2dxf-2.1/dwg2dxf/main.cpp	2005-06-16 11:40:59.000000000 +0200
@@ -254,10 +254,10 @@
 
   strcpy(initfilepath,argv0);
   if ((cptr=strrchr(initfilepath,PATHCHAR))==NULL) {
-    strcpy(initfilepath,"adinit.dat");  /* current dir only */
+    strcpy(initfilepath,"/usr/share/dwg2dxf/adinit.dat");  /* current dir only */
     return(1);
   }
-  strcpy(&cptr[1],"adinit.dat");
+  strcpy(&cptr[1],"/usr/share/dwg2dxf/adinit.dat"); /* thanks to agaran */
   return(1);
 }
 


Więcej informacji o liście dyskusyjnej pld-devel-pl