--- /dev/null
+Summary: Dia2Code generate code from a Dia diagram
+Summary(pl.UTF-8): Dia2Code generuje kod źródłowy z diagramów Dia
+Name: dia2code
+Version: 0.8.3
+Release: 1
+License: GPL v2+
+Group: Development/Tools
+Source0: http://dl.sourceforge.net/dia2code/%{name}-%{version}.tar.gz
+# Source0-md5: af64302f4e6633f26e28f74cbfbab742
+URL: http://dia2code.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libxml2-devel >= 2.4.1
+Requires: libxml2 >= 2.4.1
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Dia2Code is a small utility used to generate code from a Dia diagram.
+Generates code for: Ada, C, C++, Java, PHP, PHP5, Python, Ruby,
+shapefile, SQL and C#.
+
+%description -l pl.UTF-8
+Dia2Code to małe narzędzie, które generuje kod źródłowy z diagramów
+Dia. Generuje kod źródłowy dla języków: Ada, C, C++, Java, PHP, PHP5,
+Python, Ruby, shapefile, SQL oraz C#.
+
+%prep
+%setup -q
+
+%build
+%{__aclocal}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
+%configure
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README* TODO
+%attr(755,root,root) %{_bindir}/*